import { Image, View } from "react-native";
import { useGlobal } from "reactn";
import useLayoutType from "../hooks/useLayoutType";
import { background as backgrounds } from "../assets";
import { Style } from "../styles";
export default ({ currentUID = null, children }) => {
const { isWeb = false } = useLayoutType();
// Web: full-screen background with a centered content area (30% width)
const [webBackgroundImg] = useGlobal("webBackgroundImg");
if (isWeb) {
return (
{/* Full-viewport background for web */}
{/* Centered content column (phone-like width) */}
{children}
);
}
// Native / non-web: original layout
const sharedPanelStyle = {};
return (
{children}
);
};