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;