export const tournamentColumns = [ tournamentColumnHelper.display({ id: 'favorite', header: (info) => ( ), cell: (info) => ( ), }), tournamentColumnHelper.accessor('start_at', { header: (info) => ( Start ), cell: (info) => ( {format(new Date(info.cell.getValue()), 'E. dd.MM.yy HH:mm')} ), }), tournamentColumnHelper.accessor('events.name', { header: (info) => ( Event ), cell: (info) => {info.cell.getValue()}, }), tournamentColumnHelper.accessor('name', { header: (info) => ( Name ), cell: (info) => ( {info.cell.getValue()} ), }), tournamentColumnHelper.accessor('buy_in', { header: (info) => ( Buy-In ), cell: (info) => ( {info.cell.getValue() === null ? '' : currencyFormatter({ amount: info.cell.getValue(), currency: info.cell.row.original.buy_in_currency?.symbol || 'EUR', })} ), }), tournamentColumnHelper.accessor('guarantee', { header: (info) => ( Guarantee ), cell: (info) => ( {info.cell.getValue() === null ? '' : currencyFormatter({ amount: info.cell.getValue(), currency: info.cell.row.original.guarantee_currency.symbol || 'EUR', })} ), }), tournamentColumnHelper.display({ id: 'mobile', header: (info) => Tournaments, cell: (info) => (
{info.cell.row.original.name}
{info.cell.row.original.buy_in === null ? ( <> ) : ( <>
{info.cell.row.original.guarantee === null ? ( <> ) : ( <>
), }), ]