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