{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "flags-section-glass", "type": "registry:block", "title": "Flags Section Glass", "description": "Flags Section Glass component with glass effects", "dependencies": [ "lucide-react", "react" ], "registryDependencies": [ "cn" ], "files": [ { "path": "components/glass/sections/flags-section-glass.tsx", "type": "registry:component", "content": "// ========================================\n// FLAGS SECTION GLASS COMPONENT\n// Expandable flags/warnings section\n// ========================================\n\nimport { forwardRef } from 'react';\nimport { AlertTriangle, ChevronUp, ChevronDown } from 'lucide-react';\nimport { cn } from '@/lib/utils';\nimport { GlassCard } from '../ui/glass-card';\nimport { FlagAlertGlass, type FlagType } from '../specialized/flag-alert-glass';\nimport '@/glass-theme.css';\n\nexport interface FlagData {\n readonly type: FlagType;\n readonly title: string;\n readonly description?: string;\n}\n\nexport interface FlagsSectionGlassProps extends React.HTMLAttributes {\n readonly flags?: readonly FlagData[];\n readonly expanded?: boolean;\n readonly onToggle?: () => void;\n}\n\nexport const FlagsSectionGlass = forwardRef(\n ({ flags = [], expanded = false, onToggle, className, ...props }, ref) => {\n return (\n \n \n
\n \n {flags.length} flags detected\n
\n {expanded ? (\n \n ) : (\n \n )}\n \n {expanded && (\n
\n {flags.map((flag, i) => (\n \n ))}\n
\n )}\n \n );\n }\n);\n\nFlagsSectionGlass.displayName = 'FlagsSectionGlass';\n" } ], "categories": [ "sections" ] }