import { useWixPatternsContainer } from '@wix/bex-core/react';
export function useSidePanelProps({ onClose, }) {
    const { isPanelLayout } = useWixPatternsContainer();
    if (isPanelLayout) {
        return {
            onBackButtonClick: onClose,
        };
    }
    return {
        onCloseButtonClick: onClose,
    };
}
//# sourceMappingURL=useSidePanelProps.js.map