import { useTheme } from '@/providers/ThemeProvider';
import React from 'react';
import { StyleSheet, Text as RNText, TextProps as RNTextProps } from 'react-native';

type TextProps = RNTextProps & {
  children: React.ReactNode;
};

const Text: React.FC<TextProps> = ({ style, ...props }) => {
  const { colors } = useTheme();
  return (
    <RNText
      style={[{ color: colors.text }, style]}
      {...props}
    />
  );
};

export default Text;
