import type { Dispatch } from 'react' import { useTranslation } from '@shared/i18n/react' import type { GuiAction, GuiState } from '../demo' import { Icon } from '../parts/Glyphs' import { type Category, CATEGORIES } from '../parts/modules' type Props = { state: GuiState; dispatch: Dispatch } /** `ModulesMenuScreen`: the four liquid-glass category panels, side by side. */ export function ModulesScreen({ state, dispatch }: Props) { const { t } = useTranslation('clickgui') return (
{CATEGORIES.map((c) => ( ))}
) } function Panel({ category, state, dispatch }: { category: Category } & Props) { const { t } = useTranslation('clickgui') const titleId = `lv-gui-panel-${category.id}` return (

{category.name}

) }