import React from 'react' ; import Box from '../../primitives/Box' ; import { useThemeProps } from '../../../hooks' ; import type { ITagProps } from './types' ; import { useHasResponsiveProps } from '../../../hooks/useHasResponsiveProps' ; const Tag = ( { style , ... props } , ref ) => { let resolvedProps = useThemeProps ( 'Tag' , props ) ; if ( useHasResponsiveProps ( props ) ) { return null ; } return < Box style = { style } { ... resolvedProps } ref = { ref } / > ; } ; export default React . memo ( React . forwardRef ( Tag ) ) ; export type { ITagProps } ;