import React from 'react'; import { Menu, RadioGroup } from '@headlessui/react'; import cx from 'classnames'; import { useTranslation } from 'react-i18next'; import Button from '../ui/Button'; export interface Props { sendOnEnter: 'keypress' | 'click'; setSendOnEnter: (value: 'keypress' | 'click') => void; } const SendOnEnterMenu: React.FC = ({ sendOnEnter, setSendOnEnter }) => { const { t } = useTranslation(); return (
{({ checked }) => ( )} {({ checked }) => ( )}
); }; export default SendOnEnterMenu;