import React, { memo, forwardRef } from 'react'; import Box, { IBoxProps } from '../../primitives/Box'; import { usePropsResolution } from '../../../hooks'; import { ScrollView, IScrollViewProps } from '../../basic/ScrollView'; import { useHasResponsiveProps } from '../../../hooks/useHasResponsiveProps'; const AlertDialogBody = ( { children, ...props }: IBoxProps & { _scrollview?: IScrollViewProps }, ref?: any ) => { const { _scrollview, ...resolvedProps } = usePropsResolution( 'AlertDialogBody', props ); //TODO: refactor for responsive prop if (useHasResponsiveProps(props)) { return null; } return ( {children} ); }; export default memo(forwardRef(AlertDialogBody));