1 |
import { memo } from 'hyperapp' |
|
2 |
|
2✔ |
3 |
import { bodyTags, headTags, svgTags } from '@magic/tags' |
2✔ |
4 |
|
2✔ |
5 |
import { component } from './component.mjs' |
2✔ |
6 |
|
2✔ |
7 |
const exp = {
|
2✔ |
8 |
memo, |
2✔ |
9 |
} |
2✔ |
10 |
|
2✔ |
11 |
const prepareTag = name => {
|
|
12 |
const prepared = component(name)
|
364✔ |
13 |
exp[name] = prepared |
364✔ |
14 |
} |
364✔ |
15 |
|
2✔ |
16 |
bodyTags.forEach(prepareTag) |
2✔ |
17 |
|
2✔ |
18 |
svgTags.forEach(prepareTag) |
2✔ |
19 |
|
2✔ |
20 |
headTags.forEach(prepareTag) |
2✔ |
21 |
|
2✔ |
22 |
const description = content => {
|
2✔ |
23 |
exp.meta({ name: 'description', property: 'og:description', content }) |
× |
24 |
} |
× |
25 |
|
2✔ |
26 |
exp.description = description |
2✔ |
27 |
|
2✔ |
28 |
export const tags = exp |
2✔ |