import React, { type ReactElement, type ReactNode } from 'react'; import styles from './Modal.module.css'; export type ModalHeaderWithIllustrationProps = { /** * The title of the Modal */ title: string; /** * The Subtitle of the Modal */ subtitle?: string; /** * The illustration to display */ illustration: ReactNode; /** * Specifies the illustration height. * @default 424px */ illustrationHeight?: string; /** * The title's unique identifier. Same identifier should be pass to ModalContent using aria-labelledby. */ titleId?: string; }; export const ModalHeaderWithIllustration = ({ illustration, illustrationHeight = '424px', title, subtitle, titleId, }: ModalHeaderWithIllustrationProps): ReactElement | null => { return ( <>
{subtitle}
} > ); };