import { Box, Typography } from '@mui/material'; import { ComponentPropsWithoutRef } from 'react'; import { LearnMoreMenuButton } from '../@navigation/learn-more-menu-button'; import { StyledPageTitle } from './styles'; import { PageTitleProps, PageTitleButtonProps } from './types'; import { Link } from '../@navigation/link'; function PageTitleButton({ menuButtonText, links, href, onClick }: PageTitleButtonProps) { if (menuButtonText && links && !href && onClick === undefined) { return ; } else if (href) { return ( {menuButtonText} ); } else { return ( {menuButtonText} ); } } function PageTitle({ title, subtitle, links, menuButtonText, titleProps, subtitleProps, href, onClick, ...rest }: PageTitleProps & ComponentPropsWithoutRef) { return ( {title} {subtitle && ( {subtitle} )} ); } export default PageTitle;