import type { ReactNode } from 'react'; import { type StyleProp, View, type ViewStyle } from 'react-native'; import { Text } from '../../components/wui-text'; import { useTheme } from '../../hooks/useTheme'; import styles, { getThemedColors } from './styles'; import type { ColorType, TagType, ThemeKeys } from '../../utils/TypesUtil'; export interface TagProps { children: ReactNode; variant?: TagType; disabled?: boolean; style?: StyleProp; } export function Tag({ variant = 'main', children, style, disabled }: TagProps) { const Theme = useTheme(); const colors = getThemedColors(disabled ? undefined : variant); return ( {children} ); }