From e000d41474e0f8d8fc7ac8a610a6e554d9d074ff Mon Sep 17 00:00:00 2001 From: Dmytro Stanchiev Date: Wed, 8 Apr 2026 00:56:43 -0400 Subject: [PATCH] feat(event-actions-toolbar): redesign with icon buttons, sm size, and event count badge --- src/components/event-actions-toolbar.tsx | 65 ++++++++++++++++-------- 1 file changed, 45 insertions(+), 20 deletions(-) diff --git a/src/components/event-actions-toolbar.tsx b/src/components/event-actions-toolbar.tsx index d9193c5..bc87528 100644 --- a/src/components/event-actions-toolbar.tsx +++ b/src/components/event-actions-toolbar.tsx @@ -1,3 +1,6 @@ +"use client"; + +import { CalendarPlus, Download, FileUp, Trash2 } from "lucide-react"; import { IcsFilePicker } from "@/components/ics-file-picker"; import { Button } from "@/components/ui/button"; import type { CalendarEvent } from "@/lib/types"; @@ -18,25 +21,47 @@ export const EventActionsToolbar = ({ onClearAll, }: EventActionsToolbarProps) => { return ( - <> - {/* Control Toolbar */} -

Event Actions

-
- - - Import .ics - - {events.length > 0 && ( - <> - - - - )} -
- +
+ + + + + + Import + + + + {events.length > 0 && ( + <> + + + + )} + + {events.length > 0 && ( + + {events.length} event{events.length !== 1 ? "s" : ""} + + )} +
); };