import * as Slot from "@rn-primitives/slot"; import * as React from "react"; import { Text as RNText } from "react-native"; import { cn } from "@turbostarter/ui"; const TextClassContext = React.createContext(undefined); const Text = ({ className, asChild = false, ...props }: React.ComponentProps & React.RefAttributes & { asChild?: boolean; }) => { const textClass = React.useContext(TextClassContext); const Component = asChild ? Slot.Text : RNText; return ( ); }; export { Text, TextClassContext };