import React from "react"; import { HStack, Text } from "native-base"; import type { AccessibilityProps } from "react-native"; import { EnhancedTouchableOpacity } from "@flip.id/ui-kit"; import type { IBadgePropsNew } from "./types"; import BadgeIndicator from "./BadgeIndicator"; import BadgeVA from "./BadgeVA"; export const Badge: React.FC = (props) => { const { as, label, colorScheme, onPress, rightIcon, leftIcon, color, bgColor, type, ...rest } = props; const colorStyling = React.useMemo( () => ({ bg: bgColor || `${colorScheme}.Minus2`, color: color || `${colorScheme}.Plus2`, }), [colorScheme, bgColor, color] ); if (type === "indicator") { return ; } if (type === "va") { return ; } return ( {!!leftIcon && leftIcon} {label} {!!rightIcon && rightIcon} ); }; Badge.defaultProps = { colorScheme: "crimsonRed", type: "normal", }; export default Badge;