import { createElement , ReactElement } from "react" ; import { ScrollContainerContainerProps } from "../typings/ScrollContainerProps" ; import { ScrollContainer as ScrollContainerComponent } from "./components/ScrollContainer" ; import "./ui/scroll-container.scss" ; export function ScrollContainer ( props ) { return ( < ScrollContainerComponent className = { props . class } percentage = { props . widthType === "percentage" ? props . widthPercentage ?. toNumber ( ) : undefined } width = { props . widthType === "pixels" ? props . widthPixels ?. toNumber ( ) : undefined } styles = { props . style } > { props . content } < /ScrollContainerComponent>); }