import { useLocation } from '@tanstack/react-router' export const useRoutes = () => { const location = useLocation() const isInstalled = location.pathname === '/installed' const isSearch = location.pathname === '/search' const isHistory = location.pathname === '/history' const isSettings = location.pathname === '/settings' const isFeatured = location.pathname === '/featured' const isGroup = location.pathname.startsWith('/group/') const isRoot = location.pathname === '/' return { isInstalled, isSearch, isHistory, isSettings, isRoot, isFeatured, isGroup, currentPath: location.pathname, } }