import React from 'react'; import styled from 'styled-components'; import { ContainerSizes } from '../../types'; export interface SizedContainerProps extends React.HTMLAttributes { size?: ContainerSizes; } const mapSizeToMaxWith: Record = { fullLength: '100%', long: '336px', medium: '222px', short: '148px', } as const; const Container = styled.div` max-width: ${({ size = 'medium' }) => mapSizeToMaxWith[size]}; width: 100%; `; const SizedContainer = ({ size = 'fullLength', ...rest }: SizedContainerProps) => ; export default SizedContainer;