package Ġcom . phil ip g ur r . comp osen ews . ui . favorites Ċ Ċ import Ġandroidx . compose . material . Sca ffold Ċ import Ġandroidx . compose . material . remember Sca ffold State Ċ import Ġandroidx . compose . runtime . Composable Ċ import Ġandroidx . compose . runtime . collect As State Ċ import Ġcom . phil ip g ur r . comp osen ews . data . News Repository Ċ import Ġcom . phil ip g ur r . comp osen ews . ui . common . Default Top Bar Ċ import Ġcom . phil ip g ur r . comp osen ews . ui . common . Drawer Ċ import Ġcom . phil ip g ur r . comp osen ews . ui . common . News List Ċ import Ġcom . phil ip g ur r . comp osen ews . domain . Screen Ċ Ċ @ Composable Ċ fun ĠF avorites List Screen ( repository : ĠNews Repository , Ġnavigate : Ġ( Screen ) Ġ-> ĠUnit ) Ġ{ ĊĠĠĠ Ġval Ġscaffold State Ġ= Ġremember Sca ffold State () ĊĠĠĠ Ġval Ġposts Ġ= Ġrepository . load F avorites (). collect As State ( initial Ġ= ĠlistOf ()) ĊĊĠĠĠ ĠScaffold ( ĊĠĠĠĠĠĠĠ Ġscaffold State Ġ= Ġscaffold State , ĊĠĠĠĠĠĠĠ Ġtop Bar Ġ= Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ ĠDefault Top Bar ( scaffold State Ġ= Ġscaffold State , Ġ" F avorites ") ĊĠĠĠĠĠĠĠ Ġ}, ĊĠĠĠĠĠĠĠ Ġdrawer Content Ġ= Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ ĠDraw er ( Screen . F avorites List , Ġnavigate Ġ= Ġnavigate ) ĊĠĠĠĠĠĠĠ Ġ}, ĊĠĠĠĠĠĠĠ Ġcontent Ġ= Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ ĠNews List ( it , Ġposts . value , Ġnavigate ) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ) Ċ }