import PropTypes from 'prop-types'; import { Link } from './Link'; import { Link as RouterLink } from 'react-router-dom'; import { Button } from '@mui/material'; interface Props { action?: Link; heading: string; nav?: Link[]; } export const PageHeading = (props: Props) => { const { action, heading, nav } = props; const buttonClass = 'btn btn-outline-primary btn-sm'; return (

{heading}

{action && ( )} {nav ? ( ) : null}
); }; PageHeading.propTypes = { action: PropTypes.object, heading: PropTypes.string.isRequired, nav: PropTypes.array, };