/** * WordPress dependencies */ import { __experimentalHeading as Heading, // eslint-disable-line @wordpress/no-unsafe-wp-apis __experimentalHStack as HStack, // eslint-disable-line @wordpress/no-unsafe-wp-apis __experimentalVStack as VStack, // eslint-disable-line @wordpress/no-unsafe-wp-apis } from '@wordpress/components'; /** * Custom header component for Forms dashboard with consistent styling. * * @param {object} props - Component props. * @param {React.ReactNode} props.title - The header title content. * @param {React.ReactNode} props.subTitle - The header subtitle/description. * @param {React.ReactNode} props.actions - Action buttons to display in the header. * @return {JSX.Element} The header component. */ export default function Header( { title, subTitle, actions, }: { title?: React.ReactNode; subTitle: React.ReactNode; actions?: React.ReactNode; } ) { return ( { title && ( { title } ) } { actions } { subTitle &&

{ subTitle }

}
); }