package Ġeu . bar on cel li . dk mp sample . comp os ables Ċ Ċ import Ġandroidx . compose . runtime . Composable Ċ import Ġandroidx . compose . runtime . collect As State Ċ import Ġandroidx . compose . runtime . getValue Ċ import Ġeu . bar on cel li . dk mp sample . comp os ables . navigation . Router Ċ import Ġeu . bar on cel li . dk mp sample . shared . view model . DK MP ViewModel Ċ Ċ @ Composable Ċ fun ĠMain Composable ( model : ĠD K MP ViewModel ) Ġ{ ĊĠĠĠ Ġval Ġapp State Ġby Ġmodel . state Flow . collect As State () ĊĠĠĠ Ġprintln (" D - K MP - SAMPLE : Ġre composition ĠIndex : Ġ"+ app State . re composition Index . toString ()) ĊĠĠĠ Ġval Ġdk mp Nav Ġ= Ġapp State . get Navigation ( model ) ĊĠĠĠ Ġdk mp Nav . Router () Ċ } ĊĊ