// @ts-nocheck import { DotNestedKeys } from '@procyon/localization/types'; export const Routes = { root: '/' }; export const buildRoute = (route: DotNestedKeys) => { let path = ''; let obj: Record = Routes; route.split('.').forEach((key: any) => { path += obj[key]?.base ?? obj[key]; obj = obj[key]; }); return path; };