"use client" import { Button } from "@/components/ui/button" import { Save, Swords } from "lucide-react" export function AnalyzeAllButton() { const handleAnalyzeAll = () => { if (typeof document !== "undefined") { document.querySelectorAll("button[data-analyze-button]").forEach((button) => { ;(button as HTMLButtonElement).click() }) } } const handleSaveAll = () => { if (typeof document !== "undefined") { document.querySelectorAll("button[data-save-button]").forEach((button) => { ;(button as HTMLButtonElement).click() }) } } return (