sailfork / t3code-github / apps/ web/ src/ components/ chat/ hostImageUrl.ts

import { createContext } from "react";

/**
 * Where markdown loads an image file on the host by its absolute path, when the page has no
 * environment to ask. The guest page sets it to its own route.
 */
export const HostImageUrlContext = createContext<((path: string) => string) | null>(null);