import React from "react"; import { Text, TextStyle, StyleProp } from "react-native"; import { withTheme } from "@draftbit/theme"; import type { ReadTheme } from "@draftbit/theme"; type Props = { text: string; style?: StyleProp; /** * @optional */ theme: ReadTheme; }; export const Title = withTheme(({ text, theme, style }: Props) => { return ( {text} ); }); export const Subtitle = withTheme(({ text, theme, style }: Props) => { return ( {text} ); }); export const Caption = withTheme(({ text, theme, style }: Props) => { return ( {text} ); });