1import { createDockerDesktopClient } from "@docker/extension-api-client"; 2 3// Note: This line relies on Docker Desktop's presence as a host application. 4// If you're running this React app in a browser, it won't work properly. 5const client = createDockerDesktopClient(); 6 7export function useDockerDesktopClient() { 8 return client; 9} 10 11