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
569 B
React
24 lines
569 B
React
|
6 years ago
|
import React, { memo } from 'react';
|
||
|
|
import { Button } from 'evergreen-ui';
|
||
|
|
import { useTranslation } from 'react-i18next';
|
||
|
|
|
||
|
|
import { withBlur } from '../util';
|
||
|
|
|
||
|
|
|
||
|
|
const CustomOutDirButton = memo(({ customOutDir, changeOutDir }) => {
|
||
|
|
const { t } = useTranslation();
|
||
|
|
|
||
|
|
return (
|
||
|
|
<Button
|
||
|
|
iconBefore={customOutDir ? 'folder-open' : undefined}
|
||
|
|
height={20}
|
||
|
|
onClick={withBlur(changeOutDir)}
|
||
|
|
title={customOutDir}
|
||
|
|
>
|
||
|
|
{customOutDir ? t('Working dir set') : t('Working dir unset')}
|
||
|
|
</Button>
|
||
|
|
);
|
||
|
|
});
|
||
|
|
|
||
|
|
export default CustomOutDirButton;
|