import React from 'react' import isEmpty from 'lodash.isempty' import styled from 'styled-components' export type IllustrationProps = Readonly<{ title?: string }> type BaseIllustrationProps = IllustrationProps & Readonly<{ children: React.ReactNode viewBox?: string }> const StyledIllustration = styled.svg` max-height: 33vh; width: 100%; object-fit: contain; ` export const Illustration = ({ children, title = '', viewBox = '0 0 375 204', }: BaseIllustrationProps): JSX.Element => ( {title && {title}} {children} )