Files
native-app/apps/mobile/app/components/ui/Text.tsx
2024-01-29 10:34:51 +01:00

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}
/>
);
}