import { UseFormReturn } from 'react-hook-form' import { Badge, FormControl, FormField, SheetSection, Switch } from 'ui' import { Admonition } from 'ui-patterns' import { FormItemLayout } from 'ui-patterns/form/FormItemLayout/FormItemLayout' import { CreateQueueForm } from './CreateQueueSheet.schema' import { Markdown } from '@/components/interfaces/Markdown' export function RlsSection({ form, isExposed, projectRef, }: { form: UseFormReturn isExposed: boolean | undefined projectRef: string | undefined }) { return ( (

Enable Row Level Security (RLS)

Recommended } description="Restrict access to your queue by enabling RLS and writing Postgres policies to control access for each role." >
)} /> {!isExposed ? ( ) : ( )}
) }