From aeead98570662149ef5c376e55011e4d773f1ba6 Mon Sep 17 00:00:00 2001 From: me Date: Thu, 7 May 2026 18:08:21 +0530 Subject: [PATCH] feat: redesign drawer component with icon integration and refactor count section --- .../src/components/drawer/DrawerSection.tsx | 39 ++++++++++++++----- frontend/src/components/drawer/LetterItem.tsx | 4 +- frontend/src/pages/Drawer.tsx | 33 ++++++++++------ 3 files changed, 52 insertions(+), 24 deletions(-) diff --git a/frontend/src/components/drawer/DrawerSection.tsx b/frontend/src/components/drawer/DrawerSection.tsx index f189bf3..cdea2c1 100644 --- a/frontend/src/components/drawer/DrawerSection.tsx +++ b/frontend/src/components/drawer/DrawerSection.tsx @@ -3,19 +3,23 @@ import { GearFineIcon } from "@phosphor-icons/react"; interface DrawerSectionProps { id: string; title: string; - count: string; + count: number; + subtext: string; isOpen: boolean; onClick: () => void; children: React.ReactNode; + icon: React.ReactNode; } export function DrawerSection({ id, title, count, + subtext, isOpen, onClick, children, + icon, }: DrawerSectionProps) { return (
- {children} +
+ {children} + {count === 0 && ( +
+ This drawer remains silent... +
+ )} +
-