mirror of https://github.com/mifi/lossless-cut
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
586 B
JavaScript
24 lines
586 B
JavaScript
import React, { memo } from 'react';
|
|
import { Button, FolderOpenIcon } from 'evergreen-ui';
|
|
import { useTranslation } from 'react-i18next';
|
|
|
|
import { withBlur } from '../util';
|
|
|
|
|
|
const CustomOutDirButton = memo(({ customOutDir, changeOutDir }) => {
|
|
const { t } = useTranslation();
|
|
|
|
return (
|
|
<Button
|
|
iconBefore={customOutDir ? FolderOpenIcon : undefined}
|
|
height={20}
|
|
onClick={withBlur(changeOutDir)}
|
|
title={customOutDir}
|
|
>
|
|
{customOutDir ? t('Working dir set') : t('Working dir unset')}
|
|
</Button>
|
|
);
|
|
});
|
|
|
|
export default CustomOutDirButton;
|