feat(desktop): show write tool output
This commit is contained in:
10
packages/ui/src/context/code.tsx
Normal file
10
packages/ui/src/context/code.tsx
Normal file
@@ -0,0 +1,10 @@
|
||||
import type { ValidComponent } from "solid-js"
|
||||
import { createSimpleContext } from "./helper"
|
||||
|
||||
const ctx = createSimpleContext<ValidComponent, { component: ValidComponent }>({
|
||||
name: "CodeComponent",
|
||||
init: (props) => props.component,
|
||||
})
|
||||
|
||||
export const CodeComponentProvider = ctx.provider
|
||||
export const useCodeComponent = ctx.use
|
||||
Reference in New Issue
Block a user