import{jsxs as i,jsx as r}from"react/jsx-runtime";import{g as a}from"./ui-components-B24mpb8o.js";import{format as m}from"date-fns";import"next-themes";import"sonner";import"react";import"@radix-ui/react-label";import"class-variance-authority";import"@radix-ui/react-checkbox";import"lucide-react";import"@radix-ui/react-avatar";import"@radix-ui/react-dropdown-menu";import"@radix-ui/react-scroll-area";import"@radix-ui/react-popover";import"@radix-ui/react-radio-group";import"@radix-ui/react-dialog";import"@radix-ui/react-slot";import"clsx";import"@radix-ui/react-separator";import"@radix-ui/react-tooltip";import"@radix-ui/react-tabs";import"@radix-ui/react-accordion";import"@radix-ui/react-progress";import"@radix-ui/react-select";import"cmdk";import"@radix-ui/react-switch";import"react-day-picker";import"@radix-ui/react-slider";import"embla-carousel-react";import"@radix-ui/react-toggle-group";import"vaul";import"tailwind-merge";const k=()=>[{accessorKey:"id",header:()=>r("div",{className:"pl-4",children:"ID"}),cell:({row:e})=>i("div",{className:"pl-4 font-medium",children:["#",e.original.id]})},{accessorKey:"user.name",header:"Customer",cell:({row:e})=>i("div",{children:[r("div",{className:"font-medium",children:e.original.user.name}),r("div",{className:"text-muted-foreground text-xs",children:e.original.user.email})]})},{accessorKey:"purchase.title",header:"Item",cell:({row:e})=>{var t;return r("div",{className:"max-w-[200px] truncate",children:((t=e.original.purchase)==null?void 0:t.title)||"N/A"})}},{accessorKey:"amount",header:"Amount",cell:({row:e})=>i("div",{className:"font-medium",children:["$",Number(e.original.amount).toFixed(2)]})},{accessorKey:"payment_type",header:"Payment Method",cell:({row:e})=>r(a,{variant:"outline",className:"capitalize",children:e.original.payment_type})},{accessorKey:"transaction_id",header:"Transaction ID",cell:({row:e})=>r("div",{className:"font-mono text-xs",children:e.original.transaction_id})},{accessorKey:"created_at",header:()=>r("div",{className:"pr-4 text-end",children:"Date"}),cell:({row:e})=>r("div",{className:"pr-4 text-end text-sm",children:m(new Date(e.original.created_at),"MMM dd, yyyy HH:mm")})}];export{k as default};
