package Ġcom . challenge . android _ template . ui Ċ Ċ import Ġandroidx . compose . runtime . Composable Ċ import Ġandroidx . compose . runtime . remember Ċ import Ġandroidx . h ilt . navigation . compose . h ilt ViewModel Ċ import Ġandroidx . navigation . Nav Host Controller Ċ import Ġandroidx . navigation . compose . Nav Host Ċ import Ġandroidx . navigation . compose . comp osable Ċ import Ġandroidx . navigation . compose . navigation Ċ import Ġcom . challenge . android _ template . base ui . navigation . Feed Directions Ċ import Ġcom . challenge . android _ template . feed . Feed UI Ċ import Ġcom . challenge . android _ template . feed . Feed ViewModel Ċ Ċ @ Composable Ċ fun ĠNavigation ( nav Controller : ĠNav Host Controller ) Ġ{ ĊĠ ĠNav Host ( ĊĠĠĠ Ġnav Controller Ġ= Ġnav Controller , ĊĠĠĠ Ġstart Destination Ġ= ĠFeed Directions . root . destination ĊĠ Ġ) Ġ{ ĊĠĠĠ Ġnavigation ( ĊĠĠĠĠĠ Ġstart Destination Ġ= ĠFeed Directions . feed . destination , ĊĠĠĠĠĠ Ġroute Ġ= ĠFeed Directions . root . destination ĊĠĠĠ Ġ) Ġ{ ĊĠĠĠĠĠ Ġcomp osable ( Feed Directions . feed . destination ) Ġ{ ĊĠĠĠĠĠĠĠ Ġ/* ĊĠĠĠĠĠĠĠ Ġnav Controller . h ilt Nav Graph ViewModel ( ĊĠĠĠĠĠĠĠĠĠ Ġroute Ġ= ĠFeed Directions . feed . destination ĊĠĠĠĠĠĠĠ Ġ) ĊĠĠĠĠĠĠĠĠ Ġ*/ ĊĠĠĠĠĠĠĠ Ġval Ġfeed Entry Ġ= Ġremember Ġ{ Ġnav Controller . get Back Stack Entry (" connect ") Ġ} ĊĠĠĠĠĠĠĠ Ġval ĠviewModel Ġ= Ġh ilt ViewModel < Feed ViewModel >( feed Entry ) ĊĠĠĠĠĠĠĠ ĠFeed UI ( viewModel ) ĊĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} ĊĠ Ġ} ĊĠ Ġ// Generic Error Screen (" something Ġhappen ĠðŁĺ ¢ ") Ċ }