ente/src/components/ExportInit.tsx

35 lines
995 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 {
show: boolean
onHide: () => void
updateExportFolder: (newFolder: string) => void;
exportFolder: string
startExport: () => void
2021-07-07 05:31:48 +00:00
exportSize: string;
2021-07-07 09:20:59 +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-07-06 09:20:15 +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',
}}
onClick={props.startExport}
2021-07-07 05:31:48 +00:00
>{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
);
}