1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-24 20:36:40 +07:00
vault-frontend/src/components/editors/EditorConfirmClose/index.tsx
2022-01-19 12:30:04 +07:00

37 lines
1 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import React, { FC } from 'react';
import { Group } from '~/components/containers/Group';
import { Button } from '~/components/input/Button';
import styles from './styles.module.scss';
interface IProps {
onApprove: () => void;
onDecline: () => void;
}
const EditorConfirmClose: FC<IProps> = ({ onApprove, onDecline }) => (
<div className={styles.wrap}>
<Group className={styles.content}>
<div className={styles.title}>Точно закрыть?</div>
<div className={styles.subtitle}>
Все изменения будут потеряны, воспоминания затёрты, очевидцы умрут, над миром воссияет
ядерный рассвет.
</div>
<div />
<Group horizontal>
<Button color="gray" type="button" onClick={onApprove} autoFocus>
Да
</Button>
<Button type="button" onClick={onDecline}>
О боже, нет!
</Button>
</Group>
</Group>
</div>
);
export { EditorConfirmClose };