import { Box } from "../../box" ; import { ComponentProps , forwardRef } from "react" ; import { InternalProps , OmitInternalProps , StyledComponentProps , mergeProps } from "../../shared" ; const DefaultElement = "div" ; export interface InnerOverlayArrowProps extends InternalProps , StyledComponentProps < typeof DefaultElement > { } export function InnerOverlayArrow ( { as = DefaultElement , forwardedRef , ... rest } ) { return ( < Box { ... mergeProps ( rest , { as , className : "o-ui-overlay-arrow" , ref : forwardedRef } ) } / > ) ; } InnerOverlayArrow . defaultElement = DefaultElement ; export const OverlayArrow = forwardRef < any , OmitInternalProps < InnerOverlayArrowProps > > ( ( props , ref ) => ( < InnerOverlayArrow { ... props } forwardedRef = { ref } / > ) ) ; export type OverlayArrowProps = ComponentProps < typeof OverlayArrow > ;