import { useState, useRef } from "react" import { Button } from "@/components/ui/button" import { LaIcon } from "@/components/custom/la-icon" import { SidebarItem } from "../sidebar" // const TOPICS = ["Nix", "Javascript", "Kubernetes", "Figma", "Hiring", "Java", "IOS", "Design"] export const TopicSection = () => { const [selectedStatus, setSelectedStatus] = useState(null) const sectionRef = useRef(null) const learningOptions = [ { text: "To Learn", icon: , color: "text-black dark:text-white" }, { text: "Learning", icon: , color: "text-[#D29752]" }, { text: "Learned", icon: , color: "text-[#708F51]" } ] const statusSelect = (status: string) => { setSelectedStatus(prevStatus => (prevStatus === status ? null : status)) } const topicCounts = { "To Learn": 2, Learning: 5, Learned: 3, get total() { return this["To Learn"] + this.Learning + this.Learned } } return (
Topics {topicCounts.total}
{learningOptions.map(option => ( ))}
) }