mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-04-07 01:08:58 +00:00
Co-authored-by: adamelmore <2363879+adamdottv@users.noreply.github.com> Co-authored-by: David Hill <iamdavidhill@gmail.com>
11 lines
331 B
TypeScript
11 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
|