import React, { FC, ReactElement } from 'react'; import classNames from 'classnames'; import { Markdown } from '~/components/containers/Markdown'; import { formatText } from '~/utils/dom'; import { DivProps } from '~/utils/types'; import styles from './styles.module.scss'; interface Props extends DivProps { children: string; heading: string | ReactElement; } const FlowCellText: FC = ({ children, heading, ...rest }) => (
{heading &&
{heading}
}
); export { FlowCellText };