import type { PropsWithChildren } from 'react';
import React from 'react';
import type { GridTableColumnDefinition } from '@theorchard/suite-components';
import type { CellProps } from '@theorchard/suite-components/dist/esm/src/components/table/base/types';

export const EligibleSalesTableColumns = () => {
    const ELIGIBLE_SALE_LIST_COLUMNS: GridTableColumnDefinition<unknown>[] = [
        {
            name: 'fileName',
            title: 'File Name',
            Cell: ({
                data: { fileName },
            }: PropsWithChildren<CellProps<any>>) => <>{fileName}</>,
        },
        {
            name: 'amountUsd',
            title: 'Revenue (USD)',
            Cell: ({
                data: { amountUsd },
            }: PropsWithChildren<CellProps<any>>) => <>{amountUsd}</>,
        },
        {
            name: 'rowCount',
            title: 'Total Rows',
            Cell: ({
                data: { rowCount },
            }: PropsWithChildren<CellProps<any>>) => <>{rowCount}</>,
        },
        {
            name: 'status',
            title: 'Status',
            Cell: ({ data: { status } }: PropsWithChildren<CellProps<any>>) => (
                <>{status}</>
            ),
        },
    ];
    return ELIGIBLE_SALE_LIST_COLUMNS;
};
