import React from 'react' ; import * as Styled from './CurrentDate.styles' ; export interface Props { variant : 'smallFont' | 'middleFont' | 'largeFont' ; } function param { enum } variant returns { JSX . Element } const CurrentDate = ( { variant } ) : JSX . Element => { return ( < Styled . Date variant = { variant } > { new Date ( ) . toLocaleDateString ( ) } < /Styled.Date>); } ; export default CurrentDate ;