portainer/app/react/hooks/useCurrentEnvironment.ts

9 lines
253 B
TypeScript
Raw Normal View History

import { useEnvironment } from '@/react/portainer/environments/queries';
import { useEnvironmentId } from './useEnvironmentId';
export function useCurrentEnvironment(force = true) {
const id = useEnvironmentId(force);
return useEnvironment(id);
}