import React , { forwardRef } from "react" ; import cl from "classnames" ; import { OverridableComponent } from ".." ; export interface PanelProps extends React . HTMLAttributes < HTMLElement > { /**
     * Panel content
     */ children : React . ReactNode ; default border ? : boolean ; } export type PanelType = OverridableComponent < PanelProps , HTMLElement > ; const Panel = forwardRef ( ( { children , className , border = false , as : Component = "div" , ... rest } , ref ) => { return ( < Component ref = { ref } className = { cl ( "navds-panel" , className , { "navds-panel--border" : border , } ) } { ... rest } > { children } < /Component>); } ) ; export default Panel ;