import Link from 'next/link' import { useRouter } from 'next/router' import { PropsWithChildren } from 'react' import { useParams } from 'common' import { useIsColumnLevelPrivilegesEnabled } from 'components/interfaces/App/FeaturePreview/FeaturePreviewContext' import { ProductMenu } from 'components/ui/ProductMenu' import { useAuthConfigPrefetch } from 'data/auth/auth-config-query' import { withAuth } from 'hooks/misc/withAuth' import { AlertDescription_Shadcn_, AlertTitle_Shadcn_, Alert_Shadcn_, Button } from 'ui' import ProjectLayout from '../ProjectLayout/ProjectLayout' import { generateAuthMenu } from './AuthLayout.utils' const AuthProductMenu = () => { const router = useRouter() const { ref: projectRef = 'default' } = useParams() const columnLevelPrivileges = useIsColumnLevelPrivilegesEnabled() useAuthConfigPrefetch({ projectRef }) const page = router.pathname.split('/')[4] return ( <> {columnLevelPrivileges && (
Column Privileges has been shifted

It can now be found in the menu under the database section.

)} ) } const AuthLayout = ({ children }: PropsWithChildren<{}>) => { return ( } isBlocking={false} > {children} ) } /** * Layout for all auth pages on the dashboard, wrapped with withAuth to verify logged in state * * Handles rendering the navigation for each section under the auth pages. */ export default withAuth(AuthLayout)