import React from "react";
import {
  ClipboardList,
  DollarSign,
  Image as ImageIcon,
  CheckSquare,
  Shield,
} from "lucide-react";

export const columns: ColumnDefinition[] = [
  {
    key: "id",
    title: "ID",
    type: "text",
    icon: ClipboardList,
    sortable: true,
    searchable: true,
    filterable: true,
    description: "Unique identifier for the withdraw method",
    priority: 2,
    expandedOnly: true,
  },
  {
    key: "compound",
    title: "Method",
    type: "compound",
    disablePrefixSort: true,
    sortable: true,
    searchable: true,
    filterable: true,
    priority: 1,
    icon: Shield,
    render: {
      type: "compound",
      config: {
        image: {
          key: "image", // Row's image URL
          fallback: "/img/placeholder.svg",
          type: "image",
          title: "Image",
          description: "Method image URL",
          editable: true,
          usedInCreate: true,
          filterable: false,
          sortable: false,
        },
        primary: {
          key: "title", // Row's display title
          title: "Title",
          description: "Display title",
          editable: true,
          usedInCreate: true,
          sortable: true,
          sortKey: "title",
        },
      },
    },
  },
  {
    key: "processingTime",
    title: "Processing Time",
    type: "text",
    icon: ClipboardList,
    sortable: true,
    searchable: true,
    filterable: true,
    editable: true,
    usedInCreate: true,
    description: "Approximate processing time (e.g., 1-2 business days)",
    priority: 1,
  },
  {
    key: "instructions",
    title: "Instructions",
    type: "text",
    icon: ClipboardList,
    sortable: false,
    searchable: true,
    filterable: false,
    editable: true,
    usedInCreate: true,
    description: "How to withdraw using this method",
    expandedOnly: true,
    priority: 3,
  },
  {
    key: "status",
    title: "Status",
    type: "boolean",
    icon: CheckSquare,
    sortable: true,
    searchable: true,
    filterable: true,
    editable: true,
    usedInCreate: true,
    description: "Whether this method is active",
    priority: 1,
  },
  {
    key: "fixedFee",
    title: "Fixed Fee",
    type: "number",
    icon: DollarSign,
    sortable: true,
    searchable: false,
    filterable: true,
    editable: true,
    usedInCreate: true,
    description: "Fixed fee charged for this method",
    priority: 1,
  },
  {
    key: "percentageFee",
    title: "Percentage Fee",
    type: "number",
    icon: DollarSign,
    sortable: true,
    searchable: false,
    filterable: true,
    editable: true,
    usedInCreate: true,
    description: "Percentage fee charged",
    priority: 1,
  },
  {
    key: "minAmount",
    title: "Min Amount",
    type: "number",
    icon: DollarSign,
    sortable: true,
    searchable: false,
    filterable: true,
    editable: true,
    usedInCreate: true,
    description: "Minimum withdrawable amount",
    expandedOnly: true,
    priority: 2,
  },
  {
    key: "maxAmount",
    title: "Max Amount",
    type: "number",
    icon: DollarSign,
    sortable: true,
    searchable: false,
    filterable: true,
    editable: true,
    usedInCreate: true,
    description: "Maximum withdrawable amount",
    expandedOnly: true,
    priority: 2,
  },
  {
    key: "customFields",
    title: "Custom Fields",
    type: "customFields",
    icon: ClipboardList,
    sortable: false,
    searchable: false,
    filterable: false,
    editable: true,
    usedInCreate: true,
    description: "Additional custom fields",
    expandedOnly: true,
    priority: 3,
  },
];
