package Ġxyz . team gravity . bottomnavigation result . presentation . component Ċ Ċ import Ġandroidx . annotation . String Res Ċ import Ġandroidx . compose . material . Bottom Navigation Ċ import Ġandroidx . compose . material . Bottom Navigation Item Ċ import Ġandroidx . compose . material . Icon Ċ import Ġandroidx . compose . material . Text Ċ import Ġandroidx . compose . material . icons . Icons Ċ import Ġandroidx . compose . material . icons . filled . Email Ċ import Ġandroidx . compose . material . icons . filled . Home Ċ import Ġandroidx . compose . runtime . Composable Ċ import Ġandroidx . compose . ui . graphics . vector . Image Vector Ċ import Ġandroidx . compose . ui . res . string Resource Ċ import Ġcom . ram cost a . compose dest inations . spec . Direction Destination Spec Ċ import Ġxyz . team gravity . bottomnavigation result . R Ċ import Ġxyz . team gravity . bottomnavigation result . presentation . screen . dest inations . Destination Ċ import Ġxyz . team gravity . bottomnavigation result . presentation . screen . dest inations . Feed Screen Destination Ċ import Ġxyz . team gravity . bottomnavigation result . presentation . screen . dest inations . G reeting Screen Destination Ċ Ċ @ Composable Ċ fun ĠBottom Bar ( ĊĠĠĠ Ġcurrent Destination : ĠDestination ?, ĊĠĠĠ Ġon Destination Change : Ġ( direction : ĠDirection Destination Spec ) Ġ-> ĠUnit Ċ ) Ġ{ ĊĠĠĠ ĠBottom Navigation Ġ{ ĊĠĠĠĠĠĠĠ ĠBottom Bar Destination . values (). forEach Ġ{ Ġdestination Ġ-> ĊĠĠĠĠĠĠĠĠĠĠĠ ĠBottom Navigation Item ( ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġselected Ġ= Ġcurrent Destination Ġ== Ġdestination . direction , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠonClick Ġ= Ġ{ Ġon Destination Change ( destination . direction ) Ġ}, ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġicon Ġ= Ġ{ ĠIcon ( destination . icon , Ġcontent Description Ġ= Ġstring Resource ( destination . label )) Ġ}, ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġlabel Ġ= Ġ{ ĠText ( string Resource ( destination . label )) Ġ}, ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ } Ċ Ċ enum Ġclass ĠBottom Bar Destination ( ĊĠĠĠ Ġval Ġdirection : ĠDirection Destination Spec , ĊĠĠĠ Ġval Ġicon : ĠImage Vector , ĊĠĠĠ Ġ@ String Res Ġval Ġlabel : ĠInt Ċ ) Ġ{ ĊĠĠĠ ĠG reeting ( G reeting Screen Destination , ĠIcons . Default . Home , ĠR . string . greeting _ screen ), ĊĠĠĠ ĠFeed ( Feed Screen Destination , ĠIcons . Default . Email , ĠR . string . feed _ screen ), Ċ }