"use client" import { type Table } from "@tanstack/react-table" import { Download, RotateCcw, BarChart3, Filter } from "lucide-react" import { useRouter } from "next/navigation" import { useTransition } from "react" import { Button } from "@/components/ui/button" import { Tooltip, TooltipContent, TooltipTrigger } from "@/components/ui/tooltip" import { ExtendedPageVisit } from "../validation" import { exportTableToExcel } from "@/lib/export_all" interface PageVisitsTableToolbarActionsProps { table: Table } export function PageVisitsTableToolbarActions({ table, }: PageVisitsTableToolbarActionsProps) { const router = useRouter() const [isPending, startTransition] = useTransition() const handleRefresh = () => { startTransition(() => { router.refresh() // ✅ 서버 컴포넌트만 새로고침 (더 빠르고 부드러움) }) } return (

페이지 방문 데이터를 엑셀로 내보내기

데이터 새로고침

페이지별 방문 통계 분석

고급 필터링 옵션

) }