mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-06 00:12:11 +00:00
feat(desktop): show write tool output
This commit is contained in:
parent
ebefb26e8f
commit
ff690350b1
6 changed files with 311 additions and 277 deletions
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue