import { User } from "@/types"; import { PropsWithChildren } from "react"; import { Layout } from "react-feather"; import SystemAnnouncement from "./SystemAnnouncement"; import PinnedProjects from "./PinnedProjects"; export default function BulletinBoard({ user }: PropsWithChildren<{ user: User }>) { const thisUser = user; const renderBulletinBoardContent = () => { switch (thisUser.role_id) { case 1: return null; case 2: return (
); case 3: return (
); default: return null; } } return (

Bulletin Board

{renderBulletinBoardContent()}
) }