import React from 'react'; import { Insets, TouchableOpacity, View } from 'react-native'; import { GlobalConstants } from '../../constant/GlobalConstatnt'; import type { StyleProps } from '../../types/genericTypes'; interface SVGRendererProps extends StyleProps { children?: React.ReactChild; onPress?: () => void; secondaryIcon?: React.ReactChild; showSecondary?: boolean; hitSlop?: Insets; hideOpacity?: boolean; } export const SVGRenderer: React.FC = ({ children, secondaryIcon, showSecondary = false, hideOpacity = false, ...rest }) => { if (hideOpacity) { return ( {!!secondaryIcon && showSecondary ? secondaryIcon : children} ); } return ( {!!secondaryIcon && showSecondary ? secondaryIcon : children} ); };