[go: nahoru, domu]

blob: 32825f9ee0f9566f58a70bec00ffdf984252fe16 [file] [log] [blame]
Clara Bayarri581b24d2020-02-10 16:15:28 +00001/*
2 * Copyright 2020 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
Louis Pullen-Freilichc52e5612020-07-23 15:00:18 +010017package androidx.compose.material.studies.rally
Clara Bayarri581b24d2020-02-10 16:15:28 +000018
19import androidx.compose.Composable
Louis Pullen-Freilich4dc4dac2020-07-22 14:39:14 +010020import androidx.compose.ui.graphics.vector.VectorAsset
Louis Pullen-Freilichc52e5612020-07-23 15:00:18 +010021import androidx.compose.material.icons.Icons
Clara Bayarri581b24d2020-02-10 16:15:28 +000022
Clara Bayarric0157ea2020-02-12 18:34:17 +000023enum class RallyScreenState(
24 val icon: VectorAsset,
Louis Pullen-Freilich3a54b942020-05-07 13:23:03 +010025 val body: @Composable () -> Unit
Clara Bayarric0157ea2020-02-12 18:34:17 +000026) {
Clara Bayarri255d76a2020-02-12 12:23:09 +000027 Overview(Icons.Filled.PieChart, { OverviewBody() }),
Jose Alcerrecad1b28992020-05-26 16:35:59 +020028 Accounts(Icons.Filled.AttachMoney, { AccountsBody(UserData.accounts) }),
29 Bills(Icons.Filled.MoneyOff, { BillsBody(UserData.bills) })
Clara Bayarri581b24d2020-02-10 16:15:28 +000030}