import React, { useEffect } from 'react'; import { motion } from 'framer-motion'; import SEO from '../../components/SEO'; interface LegalSection { title: string; body: string[]; } interface LegalPageProps { title: string; description: string; canonicalUrl: string; eyebrow: string; intro: string; sections: LegalSection[]; } const LegalPage: React.FC = ({ title, description, canonicalUrl, eyebrow, intro, sections, }) => { useEffect(() => { window.scrollTo(0, 0); }, []); return ( <>
{eyebrow} {title} {intro}
{sections.map((section, index) => (

{section.title}

{section.body.map((paragraph, paragraphIndex) => { const [before, after] = paragraph.split('support@bayarea-cc.com'); return (

{after !== undefined ? ( <> {before} support@bayarea-cc.com {after} ) : ( paragraph )}

); })}
))}
); }; export default LegalPage;