/**
 * Copyright (c) Ladifire, 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 * as React from "react" ; import stylex from '@ladifire-opensource/stylex' ; type Style = 'root' | 'hidden' ; const styles = stylex . create < Style > ( { root : { boxSizing : "border-box" , position : "relative" , zIndex : 0 } , hidden : { display : "none" } , } ) ; interface Props { children ? : any ; suppressHydrationWarning ? : boolean ; testid ? : string ; xstyle ? : any ; hidden ? : boolean ; } const BaseView = ( props , ref ) => { const { children , suppressHydrationWarning , testid , xstyle , hidden , ... otherProps } = props ; const _isHidden = hidden === true ; return ( < div className = { stylex ( styles . root , xstyle ) } ref = { ref } { ... otherProps } > { children } < /div>); } ; const _BaseView = React . forwardRef ( BaseView ) ; export { _BaseView as BaseView } ;