import { FC } from 'react';

import 'src/components/dashboard/chat/i18n';

import MenuItem from '@material-hu/mui/MenuItem';

import { useTranslation } from 'src/components/dashboard/chat/i18n';

export type EditMessageOptionProps = {
  onClick: any;
};

export const EditMessageOption: FC<EditMessageOptionProps> = props => {
  const { onClick } = props;

  const { t } = useTranslation();

  return <MenuItem onClick={onClick}>{t('EDIT_MESSAGE')}</MenuItem>;
};

export default EditMessageOption;
