Skip to content

Commit

Permalink
feat/#17 : TopBar 구현
Browse files Browse the repository at this point in the history
  • Loading branch information
shinythinking committed Feb 18, 2025
1 parent 08208b5 commit fdccd3b
Showing 1 changed file with 35 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
package com.boostcamp.mapisode.home.ai

import androidx.compose.runtime.Composable
import com.boostcamp.mapisode.designsystem.compose.MapisodeIcon
import com.boostcamp.mapisode.designsystem.compose.MapisodeIconButton
import com.boostcamp.mapisode.designsystem.compose.topbar.TopAppBar

@Composable
internal fun AiEpisodeTopBar(
title: String,
onClickBack: () -> Unit,
onClickClear: () -> Unit,
) {
TopAppBar(
title = title,
navigationIcon = {
MapisodeIconButton(
onClick = {
onClickBack()
},
) {
MapisodeIcon(com.boostcamp.mapisode.designsystem.R.drawable.ic_arrow_back_ios)
}
},
actions = {
MapisodeIconButton(
onClick = {
onClickClear()
},
) {
MapisodeIcon(com.boostcamp.mapisode.designsystem.R.drawable.ic_clear)
}
},
)
}

0 comments on commit fdccd3b

Please sign in to comment.