From bdce2223cc2e1671efd552185d8854919066a10d Mon Sep 17 00:00:00 2001 From: Hazem Krimi Date: Tue, 15 Jun 2021 02:04:41 +0100 Subject: [PATCH] Add template card component --- src/components/TemplateCard/index.tsx | 50 +++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 src/components/TemplateCard/index.tsx diff --git a/src/components/TemplateCard/index.tsx b/src/components/TemplateCard/index.tsx new file mode 100644 index 0000000..6a19bf6 --- /dev/null +++ b/src/components/TemplateCard/index.tsx @@ -0,0 +1,50 @@ +import { Box, Text } from '..'; +import { TemplateOutput } from '../../graphql/types'; +import { theme } from '../../themes'; + +type TemplateCardProps = { + template: TemplateOutput; + selectable?: boolean; + selected?: boolean; + toggleSelect?: () => void; + color: 'client' | 'productOwner' | 'developer' | 'admin'; +}; + +const TemplateCard = ({ + template, + selectable = false, + selected = false, + toggleSelect = () => {}, + color, +}: TemplateCardProps) => { + return ( + {}} + display='grid' + gridTemplateRows='auto' + alignItems='center' + rowGap='10px' + borderRadius='10px' + cursor='pointer' + > + + + + {template.name} + + + + + + {template.description} + + + + ); +}; + +export default TemplateCard;