MCPcopy Create free account
hub / github.com/ampproject/amphtml / JsModeSelector

Function JsModeSelector

build-system/server/app-index/settings.js:102–117  ·  view source on GitHub ↗
({jsMode})

Source from the content-addressed store, hash-verified

100 });
101
102const JsModeSelector = ({jsMode}) =>
103 PanelSelector({
104 key: jsModeStateKey,
105 name: 'mode',
106 children: jsModes.map(({description, value}) =>
107 PanelSelectorBlock({
108 id: `serve-mode-${value}`,
109 value,
110 selected: jsMode === value,
111 children: html`
112 <strong>${value}</strong>
113 <p>${description}</p>
114 `,
115 })
116 ),
117 });
118
119const SettingsPanelButtons = ({htmlEnvelopePrefix, jsMode}) => html`
120 <div style="flex: 1">

Callers 1

SettingsPanelFunction · 0.85

Calls 3

PanelSelectorFunction · 0.85
PanelSelectorBlockFunction · 0.85
htmlFunction · 0.70

Tested by

no test coverage detected