import React, {FC, ReactElement} from "react";
import {StyleProp, StyleSheet, Text, TextStyle, View, ViewStyle} from 'react-native';
import {RFPercentage} from "react-native-responsive-fontsize";
import DText from "../DText/DText";
import {responsiveWidth} from "react-native-responsive-dimensions";

type Props = {
    children: string;
    style?: StyleProp<TextStyle>;
}
const DTitle: FC<Props> = ({children, style}) => {
    return (<DText style={[style, styles.text]}>{children}</DText>)
}
const styles = StyleSheet.create({
    text: {
        fontSize: responsiveWidth(4.5),
        fontWeight: "600",
        fontStyle: "normal"
    }
})
export default DTitle;