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'