"use client"; import { Category } from "@/lib/types"; import ScriptAccordion from "./ScriptAccordion"; const Sidebar = ({ items, selectedScript, setSelectedScript, }: { items: Category[]; selectedScript: string | null; setSelectedScript: (script: string | null) => void; }) => { return (
{items.reduce( (acc, category) => acc + category.expand.items.length, 0, )}{" "} Total scripts