import React, { ReactNode } from 'react'; import styled from 'styled-components'; import { ThemeProps } from '@t3n/theme'; import Box from '../Box'; import Button from '../Button'; import Modal, { ModalProps } from '../Modal'; export interface ConfirmDialogProps extends ModalProps { onConfirm: () => void; buttonLabel: string; buttonDisabled?: boolean; loading?: boolean; children?: ReactNode; } const StyledButtonBox = styled(Box)` @media screen and (max-width: ${(props: ThemeProps) => props.theme.breakpoints[0]}) { flex-direction: column; } `; const ConfirmDialog: React.FC = ({ headline, onConfirm, onClose, buttonLabel, buttonDisabled, loading, wide: modalPropWide, width: modalPropWidth, children, }) => { return ( {children} ); }; export default ConfirmDialog;