import React from 'react';
import { Box, Divider, Page } from '@wix/design-system';
import { useWixPatternsContainer } from '@wix/bex-core/react';
export function useCollectionPageFooter(child) {
    const { isPanelLayout } = useWixPatternsContainer();
    if (isPanelLayout) {
        return (React.createElement(React.Fragment, null,
            React.createElement(Divider, null),
            React.createElement(Box, { direction: "vertical", padding: "SP4", ...child.props })));
    }
    return React.createElement(Page.Footer, { ...child.props });
}
//# sourceMappingURL=useCollectionPageFooter.js.map