import { parseAsStringEnum } from 'nuqs' import { ViewType } from '@/app/components/workflow/types' export const parseAsViewType = parseAsStringEnum(Object.values(ViewType)) .withDefault(ViewType.graph) .withOptions({ history: 'replace', clearOnDefault: true, }) export const WORKFLOW_VIEW_PARAM_KEY = 'view'