import { Box, Toast } from 'components/primitives' import Head from 'next/head' import { FC, ReactNode, useContext } from 'react' import Navbar from './navbar' import { ToastContext } from '../context/ToastContextProvider' type Props = { children: ReactNode } const Layout: FC = ({ children }) => { const { toasts } = useContext(ToastContext) return ( <>
{children}
{toasts.map((toast, idx) => { return ( ) })}
) } export default Layout