mirror of https://github.com/portainer/portainer
9 lines
251 B
TypeScript
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);
|
||
|
}
|