TablesSelect() — supabase Function Reference
Architecture documentation for the TablesSelect() function in PrivilegesHead.tsx from the supabase codebase.
Entity Profile
Relationship Graph
Source Code
apps/studio/components/interfaces/Database/Privileges/PrivilegesHead.tsx lines 107–139
const TablesSelect = ({
selectedTable,
tables,
onChangeTable,
}: {
selectedTable?: {
name: string
}
tables: string[]
onChangeTable: (table: string) => void
}) => {
return (
<Select_Shadcn_ value={selectedTable?.name} onValueChange={onChangeTable}>
<SelectTrigger_Shadcn_ size="tiny" className="w-44">
<SelectValue_Shadcn_ placeholder="Select a table" />
</SelectTrigger_Shadcn_>
<SelectContent_Shadcn_>
<SelectGroup_Shadcn_>
{tables.length === 0 ? (
<div className="text-xs text-foreground-light p-2">
No tables available in this schema
</div>
) : null}
{tables.map((table) => (
<SelectItem_Shadcn_ key={table} value={table} className="text-xs">
<span className="text-foreground-light mr-1">table</span> {table}
</SelectItem_Shadcn_>
))}
</SelectGroup_Shadcn_>
</SelectContent_Shadcn_>
</Select_Shadcn_>
)
}
Domain
Subdomains
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free