import React from 'react';
import { Box, Page } from '@wix/design-system';
import { useWixPatternsContainer } from '@wix/bex-core/react';
export function useCollectionPageContent(child) {
    const { isPanelLayout } = useWixPatternsContainer();
    if (isPanelLayout) {
        return (React.createElement(Box, { ...child.props, direction: "vertical", minHeight: 0, height: "100%", flex: 1 }));
    }
    return React.createElement(Page.Content, { ...child.props });
}
//# sourceMappingURL=useCollectionPageContent.js.map