GHHG10's picture
download
raw
418 Bytes
import { createSimpleContext } from "./helper"
import type { PromptRef } from "../component/prompt"
export const { use: usePromptRef, provider: PromptRefProvider } = createSimpleContext({
name: "PromptRef",
init: () => {
let current: PromptRef | undefined
return {
get current() {
return current
},
set(ref: PromptRef | undefined) {
current = ref
},
}
},
})

Xet Storage Details

Size:
418 Bytes
·
Xet hash:
05348dcee7cf731e0fe2fb5b9244cbf505567133fed5d3108e08281bfcd26653

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.