// This file is part of Shadcn Admin Kit (https://github.com/marmelab/shadcn-admin-kit) /* eslint-disable @typescript-eslint/no-explicit-any */ import { Button } from "@/components/ui/button"; import { Trash } from "lucide-react"; import type { RaRecord, UseBulkDeleteControllerParams } from "ra-core"; import { Translate, useBulkDeleteController } from "ra-core"; import { cn } from "@/lib/utils"; import type { ReactNode } from "react"; export const BulkDeleteButton = < RecordType extends RaRecord = any, MutationOptionsError = unknown, >({ icon = defaultIcon, label, className, ...props }: BulkDeleteButtonProps) => { const { handleDelete, isPending } = useBulkDeleteController(props); return ( ); }; export type BulkDeleteButtonProps< RecordType extends RaRecord = any, MutationOptionsError = unknown, > = { label?: string; icon?: ReactNode; } & React.ComponentPropsWithoutRef<"button"> & UseBulkDeleteControllerParams; const defaultIcon = ;