import { User } from "@/types"; import { PropsWithChildren } from "react"; import { ChevronLeft, ChevronRight, Folder } from "react-feather"; import PinnedProjectDetails from "./PinnedProjectDetails"; export default function PinnedProjects({ user }: PropsWithChildren<{ user: User }>) { const thisUser = user; const renderPinnedProjectsContent = () => { switch (thisUser.role_id) { case 1: return null; case 2: return (

Pinned Projects

Manage pinned projects
); case 3: return (

Pinned Projects

View all projects
); default: return null; } } return (
{renderPinnedProjectsContent()}
); }