import classNames from 'classnames' import './index.scss' interface Props { name: string label: string description?: string className?: string imageAlt?: string imageClass?: string imageSrc?: string[] children: React.ReactNode } const TableField = (props: Props) => { const image = () => { return props.imageSrc && props.imageSrc.length > 0 ? (
{props.imageAlt}
) : ( '' ) } return (

{props.label}

{props.description}

{image()}
{image()}
{props.children}
) } export default TableField