import { useRouter } from 'next/router' import { PropsWithChildren } from 'react' import { useParams } from 'common' import { ProductMenu } from 'components/ui/ProductMenu' import { withAuth } from 'hooks/misc/withAuth' import { ProjectLayout } from '../ProjectLayout' const EdgeFunctionsProductMenu = () => { const { ref: projectRef = 'default' } = useParams() const router = useRouter() const page = router.pathname.split('/')[4] const menuItems = [ { title: 'Manage', items: [ { name: 'Functions', key: 'main', pages: ['', '[functionSlug]', 'new'], url: `/project/${projectRef}/functions`, items: [], }, { name: 'Secrets', key: 'secrets', url: `/project/${projectRef}/functions/secrets`, items: [], }, ], }, ] return } const EdgeFunctionsLayout = ({ children }: PropsWithChildren<{}>) => { return ( } isBlocking={false} > {children} ) } export default withAuth(EdgeFunctionsLayout)