'use client'; import { AlignInfoFillIcon as IconInfoCustomFill } from '@/components/misc/alignui-icons'; import * as React from 'react'; import { X, Info, Settings2 } from 'lucide-react'; import * as Alert from '@/components/ui/alert'; import * as Button from '@/components/ui/button'; import * as CompactButton from '@/components/ui/compact-button'; import * as Divider from '@/components/ui/divider'; import * as Hint from '@/components/ui/hint'; import * as Radio from '@/components/ui/radio'; import * as Select from '@/components/ui/select'; const LANGUAGES = [ { value: 'en', label: 'English (US)', flag: 'https://alignui.com/flags/US.svg', }, { value: 'de', label: 'German', flag: 'https://alignui.com/flags/DE.svg', }, { value: 'fr', label: 'French', flag: 'https://alignui.com/flags/FR.svg', }, ]; const LOCATIONS = [ { value: 'de', label: 'Germany', flag: 'https://alignui.com/flags/DE.svg', }, { value: 'fr', label: 'France', flag: 'https://alignui.com/flags/FR.svg', }, { value: 'uk', label: 'United Kingdom', flag: 'https://alignui.com/flags/GB.svg', }, ]; export default function PreferencesRadio() { const [selectedPreference, setSelectedPreference] = React.useState('weekly'); const [selectedLanguage, setSelectedLanguage] = React.useState('en'); const [selectedLocation, setSelectedLocation] = React.useState('de'); const selectedLangInfo = LANGUAGES.find( (lang) => lang.value === selectedLanguage, ); const selectedLocInfo = LOCATIONS.find( (loc) => loc.value === selectedLocation, ); return (