UNPKG

@dailyshot/notifications

Version:

Notification system based on Dailyshot components

13 lines (11 loc) 491 B
function getPositionStyles([vertical, horizontal], spacing) { const styles = {}; vertical === "top" && (styles.top = spacing); vertical === "bottom" && (styles.bottom = spacing); horizontal === "left" && (styles.left = spacing); horizontal === "right" && (styles.right = spacing); horizontal === "center" && (styles.left = "50%", styles.transform = "translateX(-50%)"); return styles; } export { getPositionStyles as default }; //# sourceMappingURL=get-position-styles.js.map