import React from 'react' import { Text, type TextProps, StyleSheet } from 'react-native' import { useThemeColor } from '@/hooks/useThemeColor' import { fontSizes, fontWeights, metrics } from '@/themes' export type ThemedTextProps = TextProps & { lightColor?: string darkColor?: string type?: 'default' | 'title' | 'defaultSemiBold' | 'subtitle' | 'link' } export const ThemedText: React.FC = ({ style, lightColor, darkColor, type = 'default', ...rest }) => { const color = useThemeColor({ light: lightColor, dark: darkColor }, 'text') return ( ) } const styles = StyleSheet.create({ default: { fontSize: fontSizes.body, lineHeight: metrics.large, }, defaultSemiBold: { fontSize: fontSizes.body, lineHeight: metrics.large, fontWeight: fontWeights.semiBold, }, title: { fontSize: fontSizes.title, fontWeight: fontWeights.bold, lineHeight: metrics.xxl, }, subtitle: { fontSize: fontSizes.large, fontWeight: fontWeights.bold, }, link: { lineHeight: metrics.xxl, fontSize: fontSizes.body, }, })