11 lines
378 B
TypeScript
11 lines
378 B
TypeScript
import type { EnvironmentId } from "@t3tools/contracts";
|
|
import { useServerConfigs } from "~/state/entities";
|
|
|
|
export function useSupportsMultiplePullRequests(environmentId: EnvironmentId | null): boolean {
|
|
const configs = useServerConfigs();
|
|
return (
|
|
environmentId !== null &&
|
|
configs.get(environmentId)?.environment.capabilities.threadPullRequests === true
|
|
);
|
|
}
|