"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>
  )
} 