import React from 'react'; import styles from './styles.module.scss'; /** * @since 4.4.0 */ type HeaderProps = { children?: React.ReactNode; title: string; subtitle?: string; href?: string; actionText?: string; actionOnClick?: () => void; }; /** * @since 4.4.0 */ export default function Header({title, subtitle, href, actionText, actionOnClick}: HeaderProps) { return (
{title} {subtitle && {subtitle}}
{href && !actionOnClick && ( {actionText} )} {actionOnClick && !href && ( )}
); } /** * @since 4.4.0 */ export function HeaderText({children}: {children: React.ReactNode}) { return

{children}

; } /** * @since 4.4.0 */ export function SubHeaderText({children}: {children: React.ReactNode}) { return

{children}

; }