/* eslint-disable @next/next/no-img-element */ import Footer from "@/components/Footer"; import Navbar from "@/components/Navbar"; import Title from "@/components/Title"; import translation from "@/translation/privacy.json"; import clsx from "clsx"; import React from "react"; import * as BsIcon from "react-icons/bs"; import {IconType} from "react-icons"; interface Props { language: "en" | "ar"; } type ContentKey = keyof typeof translation.content; type Translation = {ar: string; en: string}; interface Content { title?: Translation; text?: Translation; list?: Translation[]; } export default function Privacy({language}: Props) { return (
{translation.title[language]}
{Object.keys(translation.content).map((key) => { const content = translation.content[key as ContentKey] as Content; return ( {content.title &&

{content.title[language]}

} {content.text &&

{content.text[language]}

} {content.list && (
    {content.list.map((text, index) => (
  • {text[language]}
  • ))}
)}
); })}
); }