import React from 'react' import {Text as RNText, TextProps} from 'react-native' import {useTheme, atoms, web, flatten} from '#/alf' export function Text({style, ...rest}: TextProps) { const t = useTheme() return } export function H1({style, ...rest}: TextProps) { const t = useTheme() const attr = web({ role: 'heading', 'aria-level': 1, }) || {} return ( ) } export function H2({style, ...rest}: TextProps) { const t = useTheme() const attr = web({ role: 'heading', 'aria-level': 2, }) || {} return ( ) } export function H3({style, ...rest}: TextProps) { const t = useTheme() const attr = web({ role: 'heading', 'aria-level': 3, }) || {} return ( ) } export function H4({style, ...rest}: TextProps) { const t = useTheme() const attr = web({ role: 'heading', 'aria-level': 4, }) || {} return ( ) } export function H5({style, ...rest}: TextProps) { const t = useTheme() const attr = web({ role: 'heading', 'aria-level': 5, }) || {} return ( ) } export function H6({style, ...rest}: TextProps) { const t = useTheme() const attr = web({ role: 'heading', 'aria-level': 6, }) || {} return ( ) } export function P({style, ...rest}: TextProps) { const t = useTheme() const attr = web({ role: 'paragraph', }) || {} const _style = flatten(style) const lineHeight = (_style?.lineHeight || atoms.text_md.lineHeight) * atoms.leading_normal.lineHeight return ( ) }