[New Feature] Add web folder to support web documentation

This commit is contained in:
Rudy Haryanto
2022-10-04 20:17:17 +07:00
parent c27f624ca8
commit a54aa04c9b
251 changed files with 11079 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
import React, {useState} from 'react';
import CodeBlock from '@theme/CodeBlock';
const TableRowWithCodeBlock = ({name, url, code}) => (
<tr>
<td>
{url ? (
<a href={url} target="_blank" rel="noopener noreferrer">
{name}
</a>
) : (
name
)}
</td>
<td>
<CodeBlock>{code}</CodeBlock>
</td>
</tr>
);
export default TableRowWithCodeBlock;