import React, { memo } from 'react'; import { useTranslation } from 'react-i18next'; import { Heading } from 'evergreen-ui'; import CopyClipboardButton from './components/CopyClipboardButton'; import Sheet from './Sheet'; const LastCommandsSheet = memo(({ visible, onTogglePress, ffmpegCommandLog }) => { const { t } = useTranslation(); return ( {t('Last ffmpeg commands')} {ffmpegCommandLog.length > 0 ? (
{ffmpegCommandLog.reverse().map(({ command }, i) => ( // eslint-disable-next-line react/no-array-index-key
{command}
))}
) : (

{t('The last executed ffmpeg commands will show up here after you run operations. You can copy them to clipboard and modify them to your needs before running on your command line.')}

)}
); }); export default LastCommandsSheet;