ente/src/components/ExportInit.tsx

36 lines
1,020 B
TypeScript
Raw Normal View History

2021-07-06 09:20:15 +00:00
import { DeadCenter } from 'pages/gallery';
import React from 'react';
import { Button } from 'react-bootstrap';
import constants from 'utils/strings/constants';
2021-07-07 05:31:48 +00:00
interface Props {
2021-08-13 02:38:38 +00:00
show: boolean;
onHide: () => void;
2021-07-07 05:31:48 +00:00
updateExportFolder: (newFolder: string) => void;
2021-08-13 02:38:38 +00:00
exportFolder: string;
startExport: () => void;
2021-07-07 05:31:48 +00:00
exportSize: string;
2021-08-13 02:38:38 +00:00
selectExportDirectory: () => void;
2021-07-07 05:31:48 +00:00
}
export default function ExportInit(props: Props) {
2021-07-06 09:20:15 +00:00
return (
2021-07-07 09:20:59 +00:00
<>
2021-08-13 02:38:38 +00:00
<DeadCenter>
2021-07-07 05:31:48 +00:00
<Button
variant="outline-success"
size="lg"
style={{
padding: '6px 3em',
margin: '0 20px',
marginBottom: '20px',
flex: 1,
whiteSpace: 'nowrap',
}}
2021-08-13 02:38:38 +00:00
onClick={props.startExport}>
{constants.START}
</Button>
2021-07-06 09:20:15 +00:00
</DeadCenter>
2021-07-07 09:20:59 +00:00
</>
2021-07-06 09:20:15 +00:00
);
}