import { noop } from 'lodash' import { Edit, ExternalLink, FlaskConical, Grid } from 'lucide-react' import { Alert, AlertDescription, AlertTitle, Button, Modal } from 'ui' import CardButton from '@/components/ui/CardButton' interface PolicySelectionProps { description: string showAssistantPreview: boolean onViewTemplates: () => void onViewEditor: () => void onToggleFeaturePreviewModal?: () => void } const PolicySelection = ({ description = '', showAssistantPreview, onViewTemplates = noop, onViewEditor = noop, onToggleFeaturePreviewModal, }: PolicySelectionProps) => { return (

{description}

} onClick={onViewTemplates} />
} onClick={onViewEditor} /> {showAssistantPreview && onToggleFeaturePreviewModal !== undefined && ( Try the new Briven Assistant for RLS policies Create RLS policies for your tables with the help of AI
)}
) } export default PolicySelection