Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit 422ebbf5 authored by Wolf-Martell Montwé's avatar Wolf-Martell Montwé
Browse files

Add `NavigationDrawerItemBadge` to design system

parent d93d41f9
Loading
Loading
Loading
Loading
+15 −0
Original line number Diff line number Diff line
package app.k9mail.core.ui.compose.designsystem.organism.drawer

import androidx.compose.runtime.Composable
import androidx.compose.ui.tooling.preview.Preview
import app.k9mail.core.ui.compose.designsystem.PreviewWithThemes

@Composable
@Preview(showBackground = true)
internal fun NavigationDrawerItemBadgePreview() {
    PreviewWithThemes {
        NavigationDrawerItemBadge(
            label = "100+",
        )
    }
}
+16 −0
Original line number Diff line number Diff line
package app.k9mail.core.ui.compose.designsystem.organism.drawer

import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import app.k9mail.core.ui.compose.designsystem.atom.text.TextLabelLarge

@Composable
fun NavigationDrawerItemBadge(
    label: String,
    modifier: Modifier = Modifier,
) {
    TextLabelLarge(
        text = label,
        modifier = modifier,
    )
}