chore: import upstream snapshot with attribution

This commit is contained in:
wehub-resource-sync
2026-07-13 13:32:57 +08:00
commit cd420f9332
4811 changed files with 884702 additions and 0 deletions
@@ -0,0 +1,16 @@
import { useEffect } from "react";
import { useTypedFetcher } from "remix-typedjson";
import { useOrganization } from "~/hooks/useOrganizations";
import { type loader as canViewLogsPageLoader } from "~/routes/resources.orgs.$organizationSlug.can-view-logs-page/route";
export function useCanViewLogsPage(): boolean | undefined {
const organization = useOrganization();
const fetcher = useTypedFetcher<typeof canViewLogsPageLoader>();
useEffect(() => {
const url = `/resources/orgs/${organization.slug}/can-view-logs-page`;
fetcher.load(url);
}, [organization.slug]);
return fetcher.data?.canViewLogsPage;
}