import React from 'react';
import {Typography, HtmlRender} from '@components';

import {styles} from './styles';

interface Props {
  description: string;
  isHtml?: boolean;
}

function FormDescription({description, isHtml}: Props) {
  return isHtml ? (
    <HtmlRender html={description} textStyle={styles.description} />
  ) : (
    <Typography variant="m">{description}</Typography>
  );
}

export default FormDescription;
