import { ChannelType, MemberRole } from "@prisma/client"; import { redirect } from "next/navigation"; import { Hash, Mic, ShieldAlert, ShieldCheck, Video } from "lucide-react"; import { currentProfile } from "@/lib/current-profile"; import { db } from "@/lib/db"; import { ScrollArea } from "@/components/ui/scroll-area"; import { SeverHeader } from "./server-header"; import { ServerSearch } from "./server-search"; interface ServerSidebarProps { serverId: string; } const iconMap = { [ChannelType.TEXT]: , [ChannelType.AUDIO]: , [ChannelType.VIDEO]: