import { Button, Center, Stack } from '@mantine/core'; import { Dashboard, Widgets, useDashboardStore } from '~/tools/useDashboard'; export default function HomePage() { const { setCurrentDashboard, currentDashboard, addDashboard } = useDashboardStore( (state) => state ); return ( <>
Current dashboard : {currentDashboard?.name || 'none'} Widget with the longest name : {currentDashboard?.widgets.getLongestName().name || 'none'}
); }