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>
This commit is contained in:
parent
9a6bfeb782
commit
fc52e4b2d3
70 changed files with 6450 additions and 3147 deletions
10
packages/ui/src/context/file.tsx
Normal file
10
packages/ui/src/context/file.tsx
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue