Function getOverlayPosition

Gets the style for positioning an overlay based on the specified position.

const topLeftStyle = getOverlayPosition({ position: "topLeft" });
console.log(topLeftStyle);
// Output: { top: 0, left: 0 }

const bottomRightStyle = getOverlayPosition({ position: "bottomRight" });
console.log(bottomRightStyle);
// Output: { bottom: 0, right: 0 }