import { useSignal } from 'https://esm.sh/v135/@preact/signals@1.2.2/X-ZS8q/dist/signals.js' import { JSX } from 'preact' import { Budget } from '../models.ts' interface IconButtonProps { active?: boolean text?: string icon?: JSX.Element } function IconButton( { icon, children, active, ...props }: & IconButtonProps & JSX.HTMLAttributes, ) { return ( ) } function BudgetCard( { children, ...props }: & { budget: Budget } & JSX.HTMLAttributes, ) { return ( ) } export default function Dashboard() { const activeNavItemIndex = useSignal(0) const budgets: Budget[] = [ { name: 'Groceries', target: 1000, spent: 367.97, }, ] const navItems = [ { text: 'Some Text', icon: ( ), }, { text: 'Some Text', icon: ( ), }, { text: 'Some Text', icon: ( ), }, ] return (
This is the main content
) }