import {BiDotsVerticalRounded} from "react-icons/bi"; export const tableConstant = () => [ { columnKey : "name", columnLabel : "Name", render : (row : any) =>
{row?.displayName || row?.name || "Untitled"}
}, { columnKey : "instances", columnLabel : "No. of Instance", render : (row : any) =>
{row?.noOfInstances || ""}
}, { columnKey : "latest_version", columnLabel : "Latest Version", render : (row : any) =>
{row?.latestVersion}
}, { columnKey : "published_version", columnLabel : "Published Version", render : (row : any) =>
{row?.publishedVersion || ""}
}, { columnKey : "created_date", columnLabel : "Created Date", render : (row : any) => {row?.createdAt} },{ columnKey : "created_by", columnLabel : "Created By", render : (row : any) =>
{row.createdBy || ""}
}, { columnKey : "modified_date", columnLabel : "Modified Date", render : (row : any) => {row.modifiedAt} },{ columnKey : "modified_by", columnLabel : "Modified By", render : (row : any) =>
{row.modifiedBy || ""}
}, { columnKey : "action", columnLabel : "Action", render : (row : any) =>
}, ] export const tableExpandFields = [ { columnKey : "correlation_id", columnLabel : "Correlation ID", render : (row : any) => { return {/* {row?.correlationId || ""} */} {row?.correlationId || ""} } }, { columnKey : "latest_version", columnLabel : "Version", render : (row : any) =>
{row?.version || ""}
}, { columnKey : "status", columnLabel : "Status", render : (row : any) => {row.workflowStatus || ""} }, { columnKey : "started", columnLabel : "Started", render : (row : any) => {row.lastExecutedAt} }, { columnKey : "completed", columnLabel : "Completed", render : (row : any) => {row.finishedAt} }, ] export const defaultData = Array(25).fill({ name : "Extract Load Transform", displayName: "Sample", noOfInstances: 5, instances : 0, latestVersion : 1, publishedVersion : 2, createdAt : "03/03/2022", createdBy : "Admin", modifiedAt: "03/03/2022", modifiedBy : "Admin", action : "", sub_action : "", id : "1d38ddf2ea2d44578dc2491fc7c0ddd8", correlation_id : "fa72d0db24594dc59dd80d81320cc6ee", status : "Finished", started : "03-06-2022 06:15:45", completed : "03-06-2022 06:15:45", workflow: [ { correlationId: 1, version: 2, workflowStatus: "Finished", lastExecutedAt: "03-06-2022 06:15:45", finishedAt: "03-06-2022 06:15:45" }, { correlationId: 1, version: 3, workflowStatus: "Progress", lastExecutedAt: "03-06-2022 06:15:45", finishedAt: "03-06-2022 06:15:45" } ] })