| 1 | import type { EnvironmentId } from "@t3tools/contracts"; |
| 2 | import { useServerConfigs } from "~/state/entities"; |
| 3 | |
| 4 | export function useSupportsMultiplePullRequests(environmentId: EnvironmentId | null): boolean { |
| 5 | const configs = useServerConfigs(); |
| 6 | return ( |
| 7 | environmentId !== null && |
| 8 | configs.get(environmentId)?.environment.capabilities.threadPullRequests === true |
| 9 | ); |
| 10 | } |