import React, { JSX } from "react"; import { motion } from "framer-motion"; import * as SOLID from "@heroicons/react/24/solid"; import { useTranslation } from 'react-i18next'; import Section from "../components/Section"; import content from "../json/content.json" import Window from "../components/Window"; type AboutProps = { id: string; open: boolean; onClose: () => void; }; export default function About({ id, open, onClose }: AboutProps) { const { t } = useTranslation(); const paragraphs = content.about; return (
{paragraphs.map((paragraph, i) => { const Icon = (SOLID as Record)[paragraph.icon]; return (

{t(paragraph.text)}

) })}
); };