import { IHeadingTag } from "@documentalist/client" ; import classNames from "classnames" ; import * as React from "react" ; import { Classes , Icon } from "@blueprintjs/core" ; export const Heading = ( { level , route , value } ) => React . createElement ( `h${ level }` , { className : classNames ( Classes . HEADING , "docs-title" ) } , < a className = "docs-anchor" data - route = { route } key = "anchor" / > , < a className = "docs-anchor-link" href = { "#" + route } key = "link" > < Icon icon = "link" / > < /a>, value); Heading . displayName = "Docs2.Heading" ;