packageDocumentation module import "./BackArrow.scss" ; import classnames from "classnames" ; import * as React from "react" ; import { CommonProps , NoChildrenProps , useTargeted } from "@itwin/core-react" ; internal export interface BackArrowProps extends CommonProps , NoChildrenProps { /** Function called when arrow is clicked. */ onClick ? : ( ) => void ; /** Function called when pointer up event is received. */ onPointerUp ? : ( ) => void ; } internal export const BackArrow = React . memo < React . FC < BackArrowProps > > ( ( props ) => { const ref = React . useRef < HTMLDivElement > ( null ) ; const targeted = useTargeted ( ref ) ; const className = classnames ( "components-toolbar-item-expandable-group-backArrow" , targeted && "components-targeted" , props . className ) ; return ( < div className = { className } onClick = { props . onClick } onPointerUp = { props . onPointerUp } ref = { ref } style = { props . style } role = "button" tabIndex = { - 1 } />); } ) ;