diff options
Diffstat (limited to 'lib/information/table/information-table-toolbar-actions.tsx')
| -rw-r--r-- | lib/information/table/information-table-toolbar-actions.tsx | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/lib/information/table/information-table-toolbar-actions.tsx b/lib/information/table/information-table-toolbar-actions.tsx new file mode 100644 index 00000000..5d8fff3a --- /dev/null +++ b/lib/information/table/information-table-toolbar-actions.tsx @@ -0,0 +1,25 @@ +"use client"
+
+import { type Table } from "@tanstack/react-table"
+import { Plus } from "lucide-react"
+
+import { Button } from "@/components/ui/button"
+import type { PageInformation } from "@/db/schema/information"
+
+interface InformationTableToolbarActionsProps {
+ table: Table<PageInformation>
+ onAdd: () => void
+}
+
+export function InformationTableToolbarActions({
+ onAdd,
+}: InformationTableToolbarActionsProps) {
+ return (
+ <div className="flex items-center gap-2">
+ <Button size="sm" onClick={onAdd}>
+ <Plus className="mr-2 size-4" aria-hidden="true" />
+ 인포메이션 추가
+ </Button>
+ </div>
+ )
+}
\ No newline at end of file |
