import { useRouter } from 'vue-router'; import { useAppStore } from '../stores/app'; export const useNavigation = () => { const router = useRouter(); const appStore = useAppStore(); const navigateToDashboard = () => { router.push('/dashboard'); }; const navigateToProfile = () => { router.push('/profile'); }; const navigateToHuntingGround = () => { router.push('/hunting-ground'); }; const handleLogout = async () => { await appStore.logout(); router.push('/login'); }; return { navigateToDashboard, navigateToProfile, navigateToHuntingGround, handleLogout, }; };