Function getModalPosition

Gets the style for positioning a modal based on the specified position.

const centerStyle = getModalPosition({ position: "center" });
console.log(centerStyle);
// Output: { justifyContent: "center", alignItems: "center" }

const topLeftStyle = getModalPosition({ position: "topLeft" });
console.log(topLeftStyle);
// Output: { justifyContent: "flex-start", alignItems: "flex-start" }