1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-26 05:16:41 +07:00

refactor editos

This commit is contained in:
Fedor Katurov 2023-11-20 22:21:08 +06:00
parent 03ddb1862c
commit 5e9c111e0f
149 changed files with 416 additions and 317 deletions

View file

@ -0,0 +1,37 @@
import React, { FC } from 'react';
import { Group } from '~/components/common/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 };