import { CSSProperties } from "react" ; export function getStyleProp ( { orientation , height , heightUnit , style } ) { if ( orientation === "vertical" ) { const rootHeight = `${ height }${ heightUnit === "pixels" ? "px" : "%" }` ; return { ... style , height : rootHeight } ; } return style ; }