import React, { useMemo } from 'react'; import cx from 'classnames'; import styles from './section-name.module.scss'; interface SectionNameProps extends React.HTMLAttributes { className?: string; children: string; } const SectionName: React.FC = ({ className, children, ...props }) => { const id = useMemo( () => children.toLowerCase().replaceAll('’', '').replaceAll("'", '').split(' ').join('-'), [children], ); return (

{children}

); }; export default SectionName;