16 lines · 524 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";import { GoogleDiscoveryGroup } from "../api/group"; const GoogleDiscoveryApi = addGroup(GoogleDiscoveryGroup); export const GoogleDiscoveryClient = AtomHttpApi.Tag<"GoogleDiscoveryClient">()(  "GoogleDiscoveryClient",  {    api: GoogleDiscoveryApi,    httpClient: FetchHttpClient.layer,    baseUrl: getBaseUrl(),  },);