import { Info } from 'lucide-react'; import { useState, type ReactNode } from 'react'; interface MHintLabelProps { label: ReactNode; /** The explanation. It waits behind the mark until tapped; a screen reader reads it after the label all the same. */ hint?: ReactNode; labelClassName?: string; } /** * A setting's label with its explanation behind a small mark, the phone's form * of the desktop HintMark: the row stays one line, a tap on the mark opens the * sentence under the label and a second tap folds it again. */ export default function MHintLabel({ label, hint, labelClassName = 'text-[length:calc(13px*var(--fs-scale-body,1))] font-bold text-m-ink', }: MHintLabelProps) { const [open, setOpen] = useState(false); return (