import { useParams } from 'common' import { useRouter } from 'next/router' import { PropsWithChildren } from 'react' 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 Link from 'next/link' import { AlertDescription_Shadcn_, AlertTitle_Shadcn_, Alert_Shadcn_, Button } from 'ui' import ProjectLayout from '../ProjectLayout/ProjectLayout' import { generateAuthMenu } from './AuthLayout.utils' export interface AuthLayoutProps { title?: string } const AuthProductMenu = () => { const { ref: projectRef = 'default' } = useParams() const columnLevelPrivileges = useIsColumnLevelPrivilegesEnabled() useAuthConfigPrefetch({ projectRef }) const router = useRouter() 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 = ({ title, children }: PropsWithChildren) => { return ( } isBlocking={false} > {children} ) } export default withAuth(AuthLayout)