upd: discussion

Deskripsi:
- ui list diskusi

No Issues
This commit is contained in:
amel
2025-03-04 10:19:39 +08:00
parent 392ef24697
commit d923d10290
11 changed files with 191 additions and 7 deletions

View File

@@ -0,0 +1,17 @@
import { ColorsStatus } from "@/constants/ColorsStatus";
import Styles from "@/constants/Styles";
import { Text, View } from "react-native";
type Props = {
category: 'error' | 'success' | 'warning' | 'primary'
text: string
size: 'small' | 'default'
}
export default function LabelStatus({ category, text, size }: Props) {
return (
<View style={[size == "small" ? Styles.labelStatusSmall : Styles.labelStatus, ColorsStatus[category]]}>
<Text style={[size == "small" ? Styles.textSmallSemiBold : Styles.textMediumSemiBold, Styles.cWhite, { textAlign: 'center' }]}>{text}</Text>
</View>
)
}