UNPKG

@redocly/graphql-docs

Version:

Redocly GraphQL docs

2 lines (1 loc) 450 B
import{jsx as n,jsxs as t}from"react/jsx-runtime";import{PanelItemWrap as l,Item as m,Header as p,Title as a,ActionsWrap as d,StyledCheckmarkIcon as x}from"./styled.js";function u({header:r,title:i,actions:s,active:e,withCheckmark:o}){return t(l,{children:[t(m,{children:[r&&(typeof r=="string"?n(p,{children:r}):r),t(a,{active:e,suppressHydrationWarning:!0,children:[o&&e&&n(x,{})," ",i]})]}),n(d,{children:s?.map(c=>c)})]})}export{u as PanelItem};