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.
30 lines
804 B
JavaScript
30 lines
804 B
JavaScript
import React, { memo } from 'react';
|
|
import { Table } from 'evergreen-ui';
|
|
import { useTranslation } from 'react-i18next';
|
|
|
|
import Sheet from './Sheet';
|
|
|
|
const SettingsSheet = memo(({ visible, onTogglePress, renderSettings }) => {
|
|
const { t } = useTranslation();
|
|
|
|
return (
|
|
<Sheet visible={visible} onClosePress={onTogglePress} style={{ background: 'white', color: 'black' }}>
|
|
<Table style={{ marginTop: 40 }}>
|
|
<Table.Head>
|
|
<Table.TextHeaderCell>
|
|
{t('Settings')}
|
|
</Table.TextHeaderCell>
|
|
<Table.TextHeaderCell>
|
|
{t('Current setting')}
|
|
</Table.TextHeaderCell>
|
|
</Table.Head>
|
|
<Table.Body>
|
|
{renderSettings()}
|
|
</Table.Body>
|
|
</Table>
|
|
</Sheet>
|
|
);
|
|
});
|
|
|
|
export default SettingsSheet;
|