hud stuff

This commit is contained in:
legop3
2026-05-02 17:00:06 -04:00
parent ba4b6cfc78
commit 2f570d92d7
8 changed files with 183 additions and 162 deletions
@@ -3,7 +3,7 @@
// Scope: Keeps behavior unchanged while isolating this concern into a clear, single-responsibility unit.
import React from 'react';
export default function LowBatteryOverlay({ battery, compact = false }) {
function LowBatteryOverlay({ battery, compact = false }) {
if (!battery?.available) return null;
if (!battery.warnActive && !battery.urgentActive) return null;
@@ -24,3 +24,5 @@ export default function LowBatteryOverlay({ battery, compact = false }) {
</div>
);
}
export default React.memo(LowBatteryOverlay);