16 lines · 537 B · TypeScript
RawDownload
import { AtomHttpApi } from "@effect-atom/atom-react";import { FetchHttpClient } from "@effect/platform";import { addGroup } from "@executor/api";import { getBaseUrl } from "@executor/react/api/base-url";import { GoogleDiscoveryGroup } from "../api/group"; const GoogleDiscoveryApi = addGroup(GoogleDiscoveryGroup); export const GoogleDiscoveryClient = AtomHttpApi.Tag<"GoogleDiscoveryClient">()(  "GoogleDiscoveryClient",  {    api: GoogleDiscoveryApi,    httpClient: FetchHttpClient.layer,    baseUrl: getBaseUrl(),  },);