mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-29 11:42:17 +00:00
18 lines
369 B
TypeScript
18 lines
369 B
TypeScript
const location = {
|
|
directory: "/tmp/story",
|
|
ref: { directory: "/tmp/story" },
|
|
current: undefined,
|
|
error: undefined,
|
|
event: {
|
|
on: () => () => undefined,
|
|
listen: () => () => undefined,
|
|
},
|
|
}
|
|
|
|
export function useWorkspaceLocation() {
|
|
return () => location
|
|
}
|
|
|
|
export function LocationProvider(props: { children?: unknown }) {
|
|
return props.children
|
|
}
|