import { useDevice } from "../App"; 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; }; const DropdownMenuItemContentRadio = ({ value, shortcut, onChange, choices, children, name, }: Props) => { const device = useDevice(); return ( <>
{shortcut && !device.editor.isMobile && (
{shortcut}
)} ); }; DropdownMenuItemContentRadio.displayName = "DropdownMenuItemContentRadio"; export default DropdownMenuItemContentRadio;