"use client" import Image from "next/image" import { useMemo } from "react" import { Link } from "../../Design/Link/Link.tsx" import { useTheme } from "../../Layout/Header/SwitchTheme.tsx" import type { SkillName } from "./skills.ts" import { SKILLS } from "./skills.ts" export interface SkillItemProps { skillName: SkillName } export const SkillItem: React.FC = (props) => { const { skillName } = props const skill = SKILLS[skillName] const { theme } = useTheme() const skillImage = useMemo(() => { if (typeof skill.image === "string") { return skill.image } if (theme === "light") { return skill.image.light } return skill.image.dark }, [skill.image, theme]) return (
  • {`Logo

    {skillName}

  • ) }