"use client"; import { useEditorStore } from "@/lib/store"; import { useIsMobile } from "@/lib/use-mobile"; export function HealthBar() { const health = useEditorStore((s) => s.health); const shield = useEditorStore((s) => s.shield); const maxHealth = useEditorStore((s) => s.maxHealth); const maxShield = useEditorStore((s) => s.maxShield); const isMobile = useIsMobile(); const healthPct = (health / maxHealth) * 100; const shieldPct = (shield / maxShield) * 100; return (