(matches?: UIMatch[])
| 55 | }; |
| 56 | |
| 57 | export function useIsImpersonating(matches?: UIMatch[]) { |
| 58 | const data = useTypedMatchesData<typeof orgLoader>({ |
| 59 | id: "routes/_app.orgs.$organizationSlug", |
| 60 | matches, |
| 61 | }); |
| 62 | return data?.isImpersonating === true; |
| 63 | } |
no test coverage detected
searching dependent graphs…