import React from "react"; import { motion } from "framer-motion"; import * as SiIcons from "react-icons/si"; import Section from "../components/Section"; import { useTranslation } from "react-i18next"; import content from "../json/content.json" import Window from "../components/Window"; type SkillsProps = { id: string; open: boolean; onClose: () => void; }; export default function Skills({ id, open, onClose }: SkillsProps) { const { t } = useTranslation(); const skillsData = content.skills; return (
{skillsData.map((section, i) => (

{t(section.title)}:

{section.tags.map((tag, j) => { const Icon = (SiIcons as Record)[tag.icon]; return (
{Icon && } {tag.name}
); })}
))}
); };