import { Show } from "solid-js"; import { IconMaximize, IconMinimize } from "@/components/ui/icons"; import { cn } from "@/lib/cn"; import { useT } from "@/stores/preferences-context"; /** * Icon button that enters/leaves full screen for a drawing surface. State lives * in the host's `createFullscreen()` (src/lib/fullscreen.ts); this only renders. */ export function FullscreenToggle(props: { active: boolean; onToggle: () => void; class?: string }) { const t = useT(); const label = () => (props.active ? t("draw.exitFullscreen") : t("draw.fullscreen")); return ( ); }