import React, { ReactNode } from 'react'; type Props = { custom?: boolean; first?: boolean; last?: boolean; children: ReactNode; }; const SectionTitle = ({ custom = false, first = false, last = false, children, }: Props) => { let classAddon = '-my-6'; if (first) { classAddon = '-mb-6'; } else if (last) { classAddon = '-mt-6'; } return (
{custom && children} {!custom && (

{children}

)}
); }; export default SectionTitle;