"use client"

import { ColumnDef } from "@tanstack/react-table"

// This type is used to define the shape of our data.
// You can use a Zod schema here if you want.
export type Consolidated = {
  PurchaseQuantity: string;
  ticker: string;
  MarketPriceCurrency: string;
  purchaseValueFormated1: string;
  price: string;
  RealPrice: string;
  MarketPriceFormated: string;
  MarketValueFormated: string;
  GainLossFormated: string;
};

export const columns: ColumnDef<Consolidated>[] = [
  {
    accessorKey: "PurchaseQuantity",
    header: "Number / Amount",
  },
  {
    accessorKey: "ticker",
    header: "Description / Instrument",
  },
  {
    accessorKey: "Name",
    header: "Currency",
  },
  {
    accessorKey: "bank_name",
    header: "Purchase Value	",
  },
  {
    accessorKey: "asetClass",
    header: "Weighted Avg Cost",
  },
  {
    accessorKey: "asset_type_title",
    header: "Real Price",
  },
  {    accessorKey: "Industry",
    header: "Market Price",
  },
  {
    accessorKey: "Sector",
    header: "Market Value",
  },
  {    accessorKey: "t_date",
    header: "Interest",
  },
  {
    accessorKey:"reporting_currency",
    header: "Total Gain / Loss",   
  },
  {
    accessorKey: "PurchaseQuantity",
    header: "Market Value RC",    
  },
  {
    accessorKey: "price",
    header: "XIRR %",
  },
  {
    accessorKey: "purchaseValueFormated1",
    header: "% of Asset",
  },
  {
    accessorKey: "MarketPriceFormated",
    header: "% of Asset Class",
  },
  {
    accessorKey: "MarketValueFormated",
    header: "% of Portfolio",
  }
];