import { Shield, DollarSign, CheckSquare, TrendingUp } from "lucide-react";

export const columns: ColumnDefinition[] = [
  {
    key: "id",
    title: "ID",
    type: "text",
    icon: Shield,
    sortable: true,
    searchable: true,
    filterable: true,
    description: "Unique identifier for the binary market",
    priority: 2,
    expandedOnly: true,
  },
  {
    key: "currency",
    title: "Currency",
    type: "text",
    icon: DollarSign,
    sortable: true,
    searchable: true,
    filterable: true,
    editable: true,
    usedInCreate: true,
    description: "Base currency",
    priority: 1,
  },
  {
    key: "pair",
    title: "Pair",
    type: "text",
    icon: DollarSign,
    sortable: true,
    searchable: true,
    filterable: true,
    editable: true,
    usedInCreate: true,
    description: "Quote currency",
    priority: 1,
  },
  {
    key: "isTrending",
    title: "Trending",
    type: "boolean",
    icon: TrendingUp,
    sortable: true,
    searchable: true,
    filterable: true,
    editable: true,
    usedInCreate: true,
    description: "Whether the market is trending",
    priority: 2,
  },
  {
    key: "isHot",
    title: "Hot",
    type: "boolean",
    icon: TrendingUp,
    sortable: true,
    searchable: true,
    filterable: true,
    editable: true,
    usedInCreate: true,
    description: "Whether the market is hot",
    priority: 2,
  },
  {
    key: "status",
    title: "Status",
    type: "boolean",
    render: {
      type: "toggle",
      config: {
        url: "/api/admin/finance/binary/market/[id]/status",
        method: "PUT",
        field: "status",
        trueValue: true,
        falseValue: false,
      },
    },
    icon: CheckSquare,
    sortable: true,
    searchable: true,
    filterable: true,
    editable: false,
    usedInCreate: false,
    description: "Market status",
    priority: 1,
  },
];
