31 lines
644 B
TypeScript
31 lines
644 B
TypeScript
import React from 'react';
|
|
import { View, Text, StyleSheet } from 'react-native';
|
|
import Colors from '@/constants/Colors';
|
|
|
|
type AdhkarCardProps = {
|
|
title: string;
|
|
};
|
|
|
|
export default function AdhkarCard({ title }: AdhkarCardProps) {
|
|
const colorScheme = 'dark';
|
|
|
|
return (
|
|
<View style={[styles.container, { backgroundColor: Colors[colorScheme].secondary }]}>
|
|
<Text style={styles.title}>{title}</Text>
|
|
</View>
|
|
);
|
|
}
|
|
|
|
const styles = StyleSheet.create({
|
|
container: {
|
|
borderRadius: 15,
|
|
padding: 20,
|
|
marginVertical: 10,
|
|
},
|
|
title: {
|
|
fontSize: 16,
|
|
fontWeight: 'bold',
|
|
color: Colors.dark.text,
|
|
},
|
|
});
|