import React from 'react'; import { Text } from 'react-native'; import type { TextBlockProps } from 'src/theme/themeTypes'; import createTextStyle from 'src/themeUtils/createTextStyle'; import type themeType from '../theme/theme'; function createTextBlock(useTheme: () => T) { const TextBlock = ({ text = {}, children, ...otherProps }: TextBlockProps) => { const theme = useTheme(); return ( {children} ); }; return TextBlock; } export default createTextBlock;