The main ViewModel creates the navigation functions using components defined by NavGraph and NavigationEvents. These functions are then usable by UI components to transition to different pages.
fun onHomeButtonClicked() {
sendNavigationEvent(NavigationEvent.NavigateToHome)
}