"use client"; import { ScrollArea } from "@/components/ui/scroll-area"; import { cn } from "@/lib/utils"; import { motion } from "motion/react"; import { useTheme } from "next-themes"; import Image from "next/image"; import { useEffect, useState } from "react"; type TechOption = { id: string; name: string; icon: string; }; type FeatureCardProps = { title: string; description?: string; options: TechOption[]; className?: string; }; function TechIcon({ icon, name, className, }: { icon: string; name: string; className?: string; }) { const [mounted, setMounted] = useState(false); const { theme } = useTheme(); useEffect(() => { setMounted(true); }, []); if (mounted && icon.startsWith("/icon/")) { if ( theme === "light" && (icon.includes("drizzle") || icon.includes("prisma") || icon.includes("express")) ) { icon = icon.replace(".svg", "-light.svg"); } return ( {`${name} ); } return ( {icon} ); } export default function FeatureCard({ title, options, className, }: FeatureCardProps) { return (

{title}

    {options.map((option) => (
  • {/* {option.icon.startsWith("/") ? ( {option.name} ) : ( {option.icon} )} */}
  • ))}
); }