deno.land / x / netzo@0.5.16 / components / blocks / table / table-actions.tsx

table-actions.tsx
نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import type { JSX } from "preact";import type { Table } from "../../../deps/@tanstack/react-table.ts";import { Button } from "../../button.tsx";import { cn } from "../../utils.ts";
export function TableActionsReload<TData = unknown>({ className, table,}: JSX.IntrinsicElements["button"] & { table: Table<TData> }) { return ( <Button variant="outline" size="sm" onClick={() => globalThis.location.reload()} className={cn("h-8 px-2 lg:px-3", className)} > <i className="mdi-reload w-4 h-4" /> </Button> );}
netzo

Version Info

Tagged at
a year ago