import React from "react"; import { TERMS_AND_CONDITIONS } from "@/constants"; const TermsOfService = () => { const renderContent = () => { return TERMS_AND_CONDITIONS.split("\n").map((line, index) => { if (line.startsWith("**")) { return (

{line.replace(/\*\*/g, "")}

); } else if (line.startsWith("*")) { return (
  • {line.replace(/\*/g, "")}
  • ); } else if (/^\d+\./.test(line)) { return (

    {line}

    ); } else { return (

    {line}

    ); } }); }; return (

    Terms of Service

    {renderContent()}
    ); }; export default TermsOfService;