From 9608610b0fef717c8f2d87ab518a077f4e0763cb Mon Sep 17 00:00:00 2001 From: Pinapelz Date: Sun, 9 Nov 2025 20:33:00 -0800 Subject: admin: implement user deletion --- .../src/components/admin/CollapsibleSection.tsx | 40 ++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 frontend/src/components/admin/CollapsibleSection.tsx (limited to 'frontend/src/components/admin/CollapsibleSection.tsx') diff --git a/frontend/src/components/admin/CollapsibleSection.tsx b/frontend/src/components/admin/CollapsibleSection.tsx new file mode 100644 index 0000000..ab72cc8 --- /dev/null +++ b/frontend/src/components/admin/CollapsibleSection.tsx @@ -0,0 +1,40 @@ +import type {ReactNode} from 'react'; + +interface CollapsibleSectionProps { + title: string; + isOpen: boolean; + onToggle: () => void; + children: ReactNode; +} + +const CollapsibleSection = ({ title, isOpen, onToggle, children }: CollapsibleSectionProps) => { + return ( +
+
+ + {isOpen && ( +
+ {children} +
+ )} +
+
+ ); +}; + +export default CollapsibleSection; -- cgit v1.2.3