import { useState } from 'react' import { useParams } from 'react-router' import { Badge, Button, Card, Checkbox, Input, Label, Separator, Switch, Tabs, TabsContent, TabsList, TabsTrigger, } from 'ui' import { Admonition } from 'ui-patterns/Admonition' import { PageHeader, PageHeaderDescription, PageHeaderMeta, PageHeaderSummary, PageHeaderTitle, } from 'ui-patterns/PageHeader' import { ShimmeringLoader } from 'ui-patterns/ShimmeringLoader' import type { Route } from './+types/projects.$ref' export function meta({}: Route.MetaArgs) { return [ { title: 'Project Overview' }, { name: 'description', content: 'Manage your Supabase project' }, ] } export default function ProjectPage() { const { ref } = useParams() const [loading, setLoading] = useState(false) const [enableRls, setEnableRls] = useState(true) return (
{`Project: ${ref}`} Manage your project settings and resources Overview Database Settings

Quick Actions

{loading && (
)}

Tables

{['users', 'posts', 'comments'].map((table) => (
{table} public
))}

Project Settings

setEnableRls(checked)} />
) } function StatusCard({ title, status, description, }: { title: string status: 'healthy' | 'warning' | 'error' description: string }) { const badgeVariant = status === 'healthy' ? 'success' : status === 'warning' ? 'warning' : 'destructive' return (
{title} {status}

{description}

) }