import React from 'react'; import { CurrentView } from '../types'; import { SECTION_IDS, TERMS_OF_USE_CONTENT } from '../constants'; import Button from './Button'; import { ArrowUturnLeftIcon } from './icons'; interface TermsOfUseSectionProps { setCurrentView: (view: CurrentView) => void; } const TermsOfUseSection: React.FC = ({ setCurrentView }) => { const handleBackClick = () => { setCurrentView('main'); // Optional: Scroll to top or specific section if needed window.scrollTo({ top: 0, behavior: 'smooth' }); }; return (

{TERMS_OF_USE_CONTENT.title}

{TERMS_OF_USE_CONTENT.lastUpdated}

{TERMS_OF_USE_CONTENT.sections.map((section, index) => (
{section.heading &&

{section.heading}

} {typeof section.content === 'string' ?

{section.content}

: section.content}
))}
); }; export default TermsOfUseSection;