UNPKG

@redocly/graphql-docs

Version:

Redocly GraphQL docs

2 lines (1 loc) 577 B
import{jsx as r,jsxs as i}from"react/jsx-runtime";import{PageActions as a}from"@redocly/theme";import{useItemLink as l}from"../../definition/hooks/use-item-link.js";import{ShareLink as m}from"../../navigation/index.js";import{SplittedWbrText as p}from"../../../shared/index.js";import{PageActionsWrapper as n,StyledItemHeader as d}from"./Headers.js";function k({name:t,splitWbr:o=!1,path:s}){const e=l(t);return i(n,{children:[i(d,{"data-testid":"title",children:[r(m,{to:s??e,"aria-label":`link to ${t}`}),o?r(p,{text:t}):t]}),r(a,{pageSlug:e})]})}export{k as SectionHeader};