diff --git a/dashboard/src/app/[tenantId]/components/Details.tsx b/dashboard/src/app/[tenantId]/components/Details.tsx new file mode 100644 index 000000000..26874a1ca --- /dev/null +++ b/dashboard/src/app/[tenantId]/components/Details.tsx @@ -0,0 +1,37 @@ +import { TagIcon } from 'lucide-react' +import { FC } from 'react' +import { Versions } from '../userTaskDef/[...props]/components/Versions' + +export type DetailsProps = { + itemHeader: string + header: string + version?: number[] + status?: string + description?: Record +} + +export const Details: FC = ({ itemHeader, header, version, status, description }) => { + return ( +
+
+ {itemHeader} +

{header}

+
+ {version && version.length > 1 ? ( +
+ + {version[0]} +
+ ) : null} +
+ {description && + Object.entries(description).map(([key, value]) => ( +
+ {key}: {value} +
+ ))} + {status &&
{status}
} +
+
+ ) +}