"use client"; import React from "react"; import { Container } from "./Container"; import { cls } from "../util"; export type CenteredViewProps = { children: React.ReactNode; maxWidth?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl"; outerClassName?: string; className?: string; fullScreen?: boolean; }; export const CenteredView = React.forwardRef(({ children, maxWidth, outerClassName, className, fullScreen, ...rest }, ref) => { // Notice how the ref is now received as the second argument return (
{children}
); }); CenteredView.displayName = "CenteredView";