(data, context)
| 71 | }; |
| 72 | |
| 73 | export const docOgRenderer: ImageRenderer<DocsPageData> = async (data, context) => { |
| 74 | const element = React.createElement( |
| 75 | "div", |
| 76 | { style: rootDivStyle }, |
| 77 | waveLogoElement, |
| 78 | headerElement("Documentation", null), |
| 79 | React.createElement(titleElement, null, data.metadata.title), |
| 80 | React.createElement("div", null, data.metadata.description.replace("—", "-")) |
| 81 | ); |
| 82 | |
| 83 | return [element, await imageGeneratorOptions()]; |
| 84 | }; |
| 85 | |
| 86 | const imageGeneratorOptions = async (): Promise<ImageGeneratorOptions> => { |
| 87 | return { |
nothing calls this directly
no test coverage detected