(matches?: UIMatch[])
| 9 | export type MatchedProject = UseDataFunctionReturn<typeof orgLoader>["project"]; |
| 10 | |
| 11 | export function useOptionalProject(matches?: UIMatch[]) { |
| 12 | const routeMatch = useTypedMatchesData<typeof orgLoader>({ |
| 13 | id: organizationMatchId, |
| 14 | matches, |
| 15 | }); |
| 16 | |
| 17 | return routeMatch?.project; |
| 18 | } |
| 19 | |
| 20 | export function useProject(matches?: UIMatch[]) { |
| 21 | const project = useOptionalProject(matches); |
no test coverage detected
searching dependent graphs…