UNPKG

@redocly/graphql-docs

Version:

Redocly GraphQL docs

2 lines (1 loc) 621 B
import{jsx as o,jsxs as t}from"react/jsx-runtime";import{memo as i}from"react";import{useThemeHooks as n}from"@redocly/theme";import{ListIcon as m}from"../../common/index.js";import{PanelBody as c,PanelHeading as l,PanelWrapper as p,Value as d}from"./styled.js";function h({locations:s}){const{useTranslate:a}=n(),{translate:e}=a();return t(p,{children:[o(l,{children:e("graphql.locations","Locations")}),o(c,{children:s.map(r=>t(d,{"data-testid":"location-item",children:[o(m,{size:"22px",color:"var(--border-color-primary)",style:{marginRight:"var(--spacing-sm)"}}),r]},r))})]})}const j=i(h);export{j as LocationList};