export const addLeadingSlash = (path?: string): string => path && typeof path === 'string' ? path.charAt(0) !== '/' ? '/' + path : path : '';