mirror of
https://github.com/marcogll/TaxHacker_s23.git
synced 2026-01-13 21:35:19 +00:00
20 lines
493 B
TypeScript
20 lines
493 B
TypeScript
"use client"
|
|
|
|
import { Button } from "@/components/ui/button"
|
|
import { Swords } from "lucide-react"
|
|
|
|
export function AnalyzeAllButton() {
|
|
const handleAnalyzeAll = () => {
|
|
document.querySelectorAll("button[data-analyze-button]").forEach((button) => {
|
|
;(button as HTMLButtonElement).click()
|
|
})
|
|
}
|
|
|
|
return (
|
|
<Button variant="outline" className="flex items-center gap-2" onClick={handleAnalyzeAll}>
|
|
<Swords className="h-4 w-4" />
|
|
Analyze all
|
|
</Button>
|
|
)
|
|
}
|