mirror of
https://github.com/movie-web/native-app.git
synced 2025-09-13 08:03:26 +00:00
18 lines
407 B
TypeScript
18 lines
407 B
TypeScript
import { cva } from 'class-variance-authority';
|
|
import { Text as RNText, TextProps } from 'react-native';
|
|
|
|
import { cn } from '@/lib/utils';
|
|
|
|
const textVariants = cva('text-white');
|
|
|
|
export function Text({ className, ...props }: TextProps) {
|
|
return (
|
|
<RNText
|
|
className={cn(className, textVariants(), {
|
|
'font-sans': !className?.includes('font-'),
|
|
})}
|
|
{...props}
|
|
/>
|
|
);
|
|
}
|