examples/data-table-sortable.tsx
"use client";import {DataTable,type DataTableColumn,} from "@/components/wensity/data-table";type Invoice = {id: string;customer: string;plan: string;amount: string;status: string;};const columns: DataTableColumn<Invoice>[] = [{ id: "customer", header: "Customer", accessorKey: "customer", sortable: true },{ id: "plan", header: "Plan", accessorKey: "plan", sortable: true },{ id: "amount", header: "Amount", accessorKey: "amount", sortable: true },{ id: "status", header: "Status", accessorKey: "status", sortable: true },];export function SortableDataTable({ data }: { data: Invoice[] }) {return <DataTable columns={columns} data={data} sortable />;}



