chore: import upstream snapshot with attribution
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
import { useTypedRouteLoaderData } from "remix-typedjson";
|
||||
import type { loader } from "../root";
|
||||
|
||||
export function useAppOrigin() {
|
||||
const routeMatch = useTypedRouteLoaderData<typeof loader>("root");
|
||||
|
||||
return routeMatch!.appOrigin;
|
||||
}
|
||||
Reference in New Issue
Block a user