Files
mobile-darmasaba/components/sectionProgress.tsx
2026-02-13 17:22:15 +08:00

27 lines
862 B
TypeScript

import Styles from "@/constants/Styles";
import { useTheme } from "@/providers/ThemeProvider";
import { AntDesign } from "@expo/vector-icons";
import { View } from "react-native";
import ProgressBar from "./progressBar";
import Text from "./Text";
type Props = {
text: string,
progress: number
}
export default function SectionProgress({ text, progress }: Props) {
const { colors } = useTheme();
return (
<View style={[Styles.wrapPaper, Styles.rowItemsCenter, { backgroundColor: colors.card }]}>
<View style={[Styles.iconContent]}>
<AntDesign name="areachart" size={30} color={'black'} />
</View>
<View style={[Styles.ml10, { flex: 1 }]}>
<Text style={[Styles.mb05]}>{text}</Text>
<ProgressBar margin={0} category="page" value={progress} />
</View>
</View>
)
}