interface LayoutProps {
  children: any
  title?: string
}

export function Layout({ children, title }: LayoutProps) {
  return (
    <html lang="en">
      <head>
        <title>{title ? title : "Cubby"}</title>
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        <meta name="color-scheme" content="light dark" />
        <meta charset="utf-8" />
        <link rel="stylesheet" href="/css/pico.fuchsia.css" />
        <link rel="stylesheet" href="/src/css/main.css" />
      </head>
      <body>
        <main>
          {children}
        </main>
      </body>
    </html>
  )
}