From 54d822756a510dbbf1c4809ae9df5464df95602b Mon Sep 17 00:00:00 2001 From: m-tartari <37861893+m-tartari@users.noreply.github.com> Date: Sat, 17 Feb 2024 10:30:42 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(atoms):=20add=20`Publications`?= =?UTF-8?q?=20entry?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../atoms/Publication/Publication.tsx | 38 +++++++++++++++++++ src/components/atoms/Publication/index.tsx | 1 + 2 files changed, 39 insertions(+) create mode 100644 src/components/atoms/Publication/Publication.tsx create mode 100644 src/components/atoms/Publication/index.tsx diff --git a/src/components/atoms/Publication/Publication.tsx b/src/components/atoms/Publication/Publication.tsx new file mode 100644 index 0000000..fdb61bb --- /dev/null +++ b/src/components/atoms/Publication/Publication.tsx @@ -0,0 +1,38 @@ +import React from 'react' +import { Box, SxProps, Theme, Typography, TypographyProps } from '@mui/material' +import { ExtrernalIconLink } from '..' + +type AwardEntryProps = { + year: string | number + title: string + authors: React.ReactNode + location: string + link?: string + titleProps?: TypographyProps + Component?: React.ElementType + sx?: SxProps +} + +const Publication = ({ Component = Box, ...props }: AwardEntryProps) => { + return ( + + + + {props.year} + + + {props.authors},{' '} + + {props.title} + + , In: {props.location} + {typeof props.link !== 'undefined' && ( + + )} + + + + ) +} + +export default Publication diff --git a/src/components/atoms/Publication/index.tsx b/src/components/atoms/Publication/index.tsx new file mode 100644 index 0000000..869b92d --- /dev/null +++ b/src/components/atoms/Publication/index.tsx @@ -0,0 +1 @@ +export { default } from './Publication'