import { useScreenSizeDetection } from '@/useScreenSizeDetection' import { Box, Button } from '@linagora/twake-mui' import AddIcon from '@mui/icons-material/Add' import { useI18n } from 'twake-i18n' interface EventActionsProps { showExpandedBtn: boolean isEdit?: boolean onExpanded: () => void onClose: () => void onSave: () => Promise } export const EventActions: React.FC = ({ showExpandedBtn, isEdit, onExpanded, onClose, onSave }) => { const { t } = useI18n() const { isTooSmall: isMobile } = useScreenSizeDetection() return ( {showExpandedBtn && ( )} {(!showExpandedBtn || isEdit) && ( )} ) }