import {useId} from 'react'; import {useTranslation} from 'react-i18next'; import {Megaphone, X} from 'lucide-react'; import {Button} from '@/components/ui/button'; import {Card} from '@/components/ui/card'; import {cn} from '@/lib/utils'; import {hintText} from '../utils/hints.js'; export default function HintCard({hint, hideForever, onHideForeverChange, onClose, onAccept, className}) { const {t, i18n} = useTranslation(); const checkboxId = useId(); return (

{hintText(hint, i18n.language)}

{hint.kind === 'DISMISS' && ( )}
{hint.kind === 'DISMISS' ? ( ) : ( )}
); }