UNPKG

@orchestrator-ui/orchestrator-ui-components

Version:

Library of UI Components used to display the workflow orchestrator frontend

9 lines (6 loc) 330 B
import { DataDisplayParams } from '@/hooks'; export const getQueryUrl = (pageUrl: string, queryString: string) => { // Prevents silently breaking functionality when the DataDisplayParams type changes const queryKey: keyof DataDisplayParams<object> = 'queryString'; return `${pageUrl}?${queryKey}=${queryString}`; };