import { ReactNode } from "react" ; import { Placement } from "./Airr" ; export function getProperContent ( content , children ) { if ( content === undefined ) { return typeof children === "function" ? children ( ) : children ; } return content ; } export function isLeftOrRightPlacement ( placement ) { return placement === "left" || placement === "right" ; } export function isTopOrLeftPlacement ( placement ) { return placement === "top" || placement === "left" ; } export function isBottomOrRightPlacement ( placement ) { return placement === "bottom" || placement === "right" ; } export function isTopOrBottomPlacement ( placement ) { return placement === "bottom" || placement === "top" ; }