portainer/app/react/hooks/useCurrentEnvironment.ts

9 lines
251 B
TypeScript

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