From a8f8077770634168d3db14f80308532dd64da374 Mon Sep 17 00:00:00 2001 From: Hazem Krimi Date: Sun, 2 May 2021 03:57:59 +0100 Subject: [PATCH] Complete modal component --- src/components/Modal/index.tsx | 51 ++++++++++++++++++++++++++++++++-- src/components/Modal/styles.ts | 13 ++++++++- src/components/index.tsx | 2 ++ 3 files changed, 63 insertions(+), 3 deletions(-) diff --git a/src/components/Modal/index.tsx b/src/components/Modal/index.tsx index 5772ebb..e916e94 100644 --- a/src/components/Modal/index.tsx +++ b/src/components/Modal/index.tsx @@ -1,7 +1,54 @@ +import { theme } from '../../themes'; +import { Box, Button, Text } from '..'; import { Wrapper } from './styles'; -const Modal = () => { - return ; +type ModalProps = { + color: 'client' | 'productOwner' | 'developer' | 'admin'; + title: string; + description: string; + children?: React.ReactNode | JSX.Element | string; + onConfirm: () => void; + onClose: () => void; +}; + +const Modal = ({ + color, + title, + description, + children, + onConfirm, + onClose, +}: ModalProps) => { + return ( + + + + {title} + + + {description} + + {children} + +