orchidmap-front/src/components/panels/RendererPanel.tsx
2020-01-08 14:38:20 +07:00

34 lines
721 B
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 from 'react';
import { Icon } from '~/components/panels/Icon';
type Props = {
onCancel: () => void,
onSubmit: () => void,
};
export const RendererPanel = ({ onCancel, onSubmit }: Props) => (
<div
className="panel active center"
style={{ zIndex: 1000 }}
>
<div className="control-sep" />
<div className="control-bar">
<button
className="highlighted cancel"
onClick={onCancel}
>
<Icon icon="icon-cancel-1" />
<span>Отмена</span>
</button>
<button
className="success"
onClick={onSubmit}
>
<span>СКАЧАТЬ</span>
<Icon icon="icon-get-1" />
</button>
</div>
</div>
);