import { useEditorInterface } from "../App"; import { Ellipsify } from "../Ellipsify"; import { RadioGroup } from "../RadioGroup"; type Props = { value: T; shortcut?: string; choices: { value: T; label: React.ReactNode; ariaLabel?: string; }[]; onChange: (value: T) => void; children: React.ReactNode; name: string; icon?: React.ReactNode; }; const DropdownMenuItemContentRadio = ({ value, shortcut, onChange, choices, children, name, icon, }: Props) => { const editorInterface = useEditorInterface(); return ( <>
{icon &&
{icon}
}
{shortcut && editorInterface.formFactor !== "phone" && (
{shortcut}
)} ); }; DropdownMenuItemContentRadio.displayName = "DropdownMenuItemContentRadio"; export default DropdownMenuItemContentRadio;