Add tool edit page

This commit is contained in:
2024-01-31 18:07:16 +08:00
parent d6ff952596
commit 28140543c4
11 changed files with 254 additions and 22 deletions

View File

@@ -1,5 +1,15 @@
import Playground from '@/components/Playground'
import templates from '@/components/Playground/templates'
const Tools = () => {
return <>1</>
const template = templates['base']
return (
<Playground
initFiles={template.files}
initTsconfigRaw={JSON.stringify(template.tsconfig, null, 2)}
initImportMapRaw={JSON.stringify(template.importMap, null, 2)}
/>
)
}
export default Tools