import { AppPath } from '@/types/AppPath'; export const buildAppPathWithQueryParams = ( path: AppPath, queryParams: Record, ) => { const searchParams = []; for (const [key, value] of Object.entries(queryParams)) { searchParams.push(`${key}=${value}`); } return `${path}?${searchParams.join('&')}`; };