wix-style-react
Version:
14 lines (12 loc) • 426 B
JavaScript
import { baseModalLayoutDriverFactory } from '../BaseModalLayout/BaseModalLayout.uni.driver';
export const customModalLayoutDriverFactory = (base, body) => {
return {
...baseModalLayoutDriverFactory(base, body),
/**
* Checks whether the modal content has padding
* @returns {Promise<boolean>}
* */
hasContentPadding: async () =>
(await base.attr('data-contentpadding')) === 'true',
};
};