@0xsequence/connect
Version:
Connect package for Sequence Web SDK
48 lines • 1.2 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getModalPositionCss = void 0;
const getModalPositionCss = (position) => {
switch (position) {
case 'top-right':
return {
top: '0px',
right: '0px'
};
case 'top-left':
return {
top: '0px',
left: '0px'
};
case 'top-center':
return {
top: '0px'
};
case 'bottom-right':
return {
bottom: '0px',
right: '0px'
};
case 'bottom-left':
return {
bottom: '0px',
left: '0px'
};
case 'bottom-center':
return {
bottom: '0px'
};
case 'middle-right':
return {
right: '0px'
};
case 'middle-left':
return {
left: '0px'
};
case 'center':
default:
return {};
}
};
exports.getModalPositionCss = getModalPositionCss;
//# sourceMappingURL=styling.js.map