initial commit

This commit is contained in:
CamelAIorg 2025-07-29 23:57:16 +08:00
commit f6dd426830
1145 changed files with 102834 additions and 0 deletions

View file

@ -0,0 +1,17 @@
// src/hooks/use-hash.tsx
import { useSyncExternalStore } from "react";
import { suspendIfSsr } from "../utils/react";
var useHash = () => {
suspendIfSsr("useHash");
return useSyncExternalStore(
(onChange) => {
const interval = setInterval(() => onChange(), 10);
return () => clearInterval(interval);
},
() => window.location.hash.substring(1)
);
};
export {
useHash
};
//# sourceMappingURL=use-hash.js.map