/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the LICENSE file * in the root directory of this source tree. */ import React, { type CSSProperties, type ReactNode } from "react"; import styles from "./BrowserWindow.module.css"; import { ShadowDomWrapper } from "./ShadowDomWrapper"; interface Props { children: ReactNode; minHeight?: number; url?: string; style?: CSSProperties; styleStr?: string; bodyStyle?: CSSProperties; shadow?: boolean; sourceUrl?: string; sourceLabel?: string; } export function BrowserWindow({ children, minHeight, style, bodyStyle, shadow = true, styleStr, url, sourceUrl, sourceLabel = "View source", }: Props) { return (