From 2e6ce3941ad2bcbc396744a96b3f9c29cfe6329b Mon Sep 17 00:00:00 2001 From: m-tartari <37861893+m-tartari@users.noreply.github.com> Date: Sat, 17 Feb 2024 10:29:50 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(atoms):=20add=20`Award`=20entr?= =?UTF-8?q?y?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/atoms/Award/Award.tsx | 37 ++++++++++++++++++++++++++++ src/components/atoms/Award/index.tsx | 1 + 2 files changed, 38 insertions(+) create mode 100644 src/components/atoms/Award/Award.tsx create mode 100644 src/components/atoms/Award/index.tsx diff --git a/src/components/atoms/Award/Award.tsx b/src/components/atoms/Award/Award.tsx new file mode 100644 index 0000000..be5a773 --- /dev/null +++ b/src/components/atoms/Award/Award.tsx @@ -0,0 +1,37 @@ +import React from 'react' +import { Box, SxProps, Theme, Typography, TypographyProps } from '@mui/material' + +type AwardEntryProps = { + year: string | number + title: React.ReactNode + titleProps?: TypographyProps + organization: React.ReactNode + location: string + Component?: React.ElementType + sx?: SxProps +} + +const Award = ({ Component = Box, ...props }: AwardEntryProps) => { + return ( + + + + {props.year} + + + + {props.title} + + + {props.organization} + + + {props.location} + + + + + ) +} + +export default Award diff --git a/src/components/atoms/Award/index.tsx b/src/components/atoms/Award/index.tsx new file mode 100644 index 0000000..0fb9f24 --- /dev/null +++ b/src/components/atoms/Award/index.tsx @@ -0,0 +1 @@ +export { default } from './Award'