import React , { memo , forwardRef } from 'react' ; import Box , { IBoxProps } from '../../primitives/Box' ; import { usePropsResolution } from '../../../hooks' ; import { useHasResponsiveProps } from '../../../hooks/useHasResponsiveProps' ; const ModalFooter = ( props , ref ? ) => { const resolvedProps = usePropsResolution ( 'ModalFooter' , props ) ; if ( useHasResponsiveProps ( props ) ) { return null ; } return < Box { ... resolvedProps } ref = { ref } / > ; } ; export default memo ( forwardRef ( ModalFooter ) ) ;