import * as React from "react"; import { SpacingBox } from "../../styleUtils/modifiers"; import { HeadingText2, Text } from "../../styleUtils/typography"; interface FormSectionHeaderProps { /** * Allows custom styling */ className?: string; /** * Title text */ title: string; /** * Subtitle text */ subtitle?: React.ReactNode; /** * Human-readable selector used for writing tests */ "data-cy"?: string; } const FormSectionHeader = ({ className, title, subtitle, "data-cy": dataCy = "formSectionHeader" }: FormSectionHeaderProps) => ( {title} {subtitle && ( {subtitle} )} ); export default FormSectionHeader;