99import Navbar from "@/lib/navbar/Navbar" ;
1010import NavbarButton from "@/lib/navbar/NavbarButton" ;
1111import * as m from "@/paraglide/messages" ;
12+ import ConfettiOnAdoption from "@/lib/components/confetti_on_adoption" ;
13+ import { CommitteeDataContext } from "@/lib/contexts/committee_data" ;
1214
1315export default function Chair_Pages_Layout ( {
1416 children,
@@ -20,10 +22,10 @@ export default function Chair_Pages_Layout({
2022 < SpeakersListMiniatureProvider >
2123 < SpeakersListMiniature />
2224 { /* <MessageCountProvider> */ }
23- < div className = "flex h-screen w-screen overflow-hidden bg-white text-primary-100 shadow-md dark:bg-primary-100 dark:text-primary-900" >
24- < ChairNavbar />
25- { children }
26- </ div >
25+ < div className = "flex h-screen w-screen overflow-hidden bg-white text-primary-100 shadow-md dark:bg-primary-100 dark:text-primary-900" >
26+ < ChairNavbar />
27+ { children }
28+ </ div >
2729 { /* </MessageCountProvider> */ }
2830 </ SpeakersListMiniatureProvider >
2931 </ >
@@ -32,53 +34,61 @@ export default function Chair_Pages_Layout({
3234
3335function ChairNavbar ( ) {
3436 const { messageCount } = useContext ( MessageCountContext ) ;
37+ const committeeData = useContext ( CommitteeDataContext ) ;
3538
3639 return (
37- < Navbar >
38- < NavbarButton
39- icon = "rocket-launch"
40- link = "../../../hub/team/committees"
41- title = { m . hub ( ) }
42- />
43- < div className = "h-4" />
44- < NavbarButton
45- icon = "square-sliders"
46- link = { "./dashboard" }
47- title = { m . configurations ( ) }
48- />
49- < NavbarButton
50- icon = "users-line"
51- link = { "./attendees" }
52- title = { m . attendees ( ) }
53- />
54- < NavbarButton
55- icon = "podium"
56- link = { "./speakers" }
57- title = { m . speakersList ( ) }
58- />
59- { /* <NavButton TODO add Voting page
40+ < >
41+ < Navbar >
42+ < NavbarButton
43+ icon = "rocket-launch"
44+ link = "../../../hub/team/committees"
45+ title = { m . hub ( ) }
46+ />
47+ < div className = "h-4" />
48+ < NavbarButton
49+ icon = "square-sliders"
50+ link = { "./dashboard" }
51+ title = { m . configurations ( ) }
52+ />
53+ < NavbarButton
54+ icon = "users-line"
55+ link = { "./attendees" }
56+ title = { m . attendees ( ) }
57+ />
58+ < NavbarButton
59+ icon = "podium"
60+ link = { "./speakers" }
61+ title = { m . speakersList ( ) }
62+ />
63+ { /* <NavButton TODO add Voting page
6064 icon="poll-people"
6165 link={"./voting"}
6266 title={LL.navbar.VOTING()}
6367 /> */ }
64- < NavbarButton
65- icon = "chalkboard"
66- link = { "./whiteboard" }
67- title = { m . whiteboard ( ) }
68- />
69- { /* <NavbarButton
68+ < NavbarButton
69+ icon = "chalkboard"
70+ link = { "./whiteboard" }
71+ title = { m . whiteboard ( ) }
72+ />
73+ { /* <NavbarButton
7074 icon="inbox"
7175 link={"./inbox"}
7276 title={m.inbox()}
7377 badge={messageCount ?? 0}
7478 /> */ }
75- { /* <NavButton TODO add Resolution Editor page
79+ { /* <NavButton TODO add Resolution Editor page
7680 icon="scroll"
7781 link={"./resolutions"}
7882 title={LL.navbar.RESOLUTIONS()}
7983 /> */ }
80- < div className = "flex-1" />
81- { /* <ExternalLinks /> */ }
82- </ Navbar >
84+ < div className = "flex-1" />
85+ { /* <ExternalLinks /> */ }
86+ </ Navbar >
87+ < ConfettiOnAdoption
88+ adoptionDate = { committeeData ?. lastAdoptedResolution }
89+ title = { committeeData ?. agendaItems . find ( ( x ) => x . isActive ) ?. title }
90+ committee = { committeeData ?. name }
91+ />
92+ </ >
8393 ) ;
8494}
0 commit comments