import { AlignLeft, AlignCenter, AlignRight, RotateCcw } from 'lucide-react'; import { Button } from '@/components/ui/button'; import { ButtonGroup } from '@/components/ui/button-group'; type Alignment = 'left' | 'center' | 'right' | 'default'; export function AlignmentControl({ id, label, value, onChange, allowDefault = false }: { id: string; label: string; value: Alignment; onChange: (value: Alignment) => void; allowDefault?: boolean; }) { const choices = [ ...(allowDefault ? [{ value: 'default' as const, label: 'Template default', icon: RotateCcw }] : []), { value: 'left' as const, label: 'Align left', icon: AlignLeft }, { value: 'center' as const, label: 'Align center', icon: AlignCenter }, { value: 'right' as const, label: 'Align right', icon: AlignRight }, ]; return