Function
constructPageHeader
({ title, task, description, icon })
Source from the content-addressed store, hash-verified
| 157 | } |
| 158 | |
| 159 | function constructPageHeader({ title, task, description, icon }) { |
| 160 | const headerLines = [ |
| 161 | // |
| 162 | `---`, |
| 163 | `title: '${title || task}'`, |
| 164 | `description: ${description}`, |
| 165 | `icon: '${icon}'`, |
| 166 | `mode: 'wide'`, |
| 167 | `---`, |
| 168 | ]; |
| 169 | |
| 170 | const header = headerLines.join('\n'); |
| 171 | |
| 172 | return header; |
| 173 | } |
| 174 | |
| 175 | function toAccordion({ |
| 176 | exampleTitle, |
Tested by
no test coverage detected