mirror of
https://github.com/status-im/spiff-arena.git
synced 2025-01-21 15:29:00 +00:00
23 lines
649 B
TypeScript
23 lines
649 B
TypeScript
import { Link } from 'react-router-dom';
|
|
import { modifyProcessIdentifierForPathParam } from '../helpers';
|
|
import { MessageInstance, ProcessInstance } from '../interfaces';
|
|
|
|
export function FormatProcessModelDisplayName(
|
|
instanceObject: ProcessInstance | MessageInstance
|
|
) {
|
|
const {
|
|
process_model_identifier: processModelIdentifier,
|
|
process_model_display_name: processModelDisplayName,
|
|
} = instanceObject;
|
|
return (
|
|
<Link
|
|
to={`/admin/process-models/${modifyProcessIdentifierForPathParam(
|
|
processModelIdentifier
|
|
)}`}
|
|
title={processModelIdentifier}
|
|
>
|
|
{processModelDisplayName}
|
|
</Link>
|
|
);
|
|
}
|