opencode/packages/ui/src/context/file.tsx
Adam fc52e4b2d3
feat(app): better diff/code comments (#14621)
Co-authored-by: adamelmore <2363879+adamdottv@users.noreply.github.com>
Co-authored-by: David Hill <iamdavidhill@gmail.com>
2026-02-26 18:23:04 -06:00

10 lines
331 B
TypeScript

import type { ValidComponent } from "solid-js"
import { createSimpleContext } from "./helper"
const ctx = createSimpleContext<ValidComponent, { component: ValidComponent }>({
name: "FileComponent",
init: (props) => props.component,
})
export const FileComponentProvider = ctx.provider
export const useFileComponent = ctx.use