import * as Types from '#shared/graphql/types.ts'; import gql from 'graphql-tag'; import * as VueApolloComposable from '@vue/apollo-composable'; import * as VueCompositionApi from 'vue'; export type ReactiveFunction = () => TParam; export const LocalesDocument = gql` query locales($onlyActive: Boolean = false) { locales(onlyActive: $onlyActive) { locale alias name dir active } } `; export function useLocalesQuery(variables: Types.LocalesQueryVariables | VueCompositionApi.Ref | ReactiveFunction = {}, options: VueApolloComposable.UseQueryOptions | VueCompositionApi.Ref> | ReactiveFunction> = {}) { return VueApolloComposable.useQuery(LocalesDocument, variables, options); } export function useLocalesLazyQuery(variables: Types.LocalesQueryVariables | VueCompositionApi.Ref | ReactiveFunction = {}, options: VueApolloComposable.UseQueryOptions | VueCompositionApi.Ref> | ReactiveFunction> = {}) { return VueApolloComposable.useLazyQuery(LocalesDocument, variables, options); } export type LocalesQueryCompositionFunctionResult = VueApolloComposable.UseQueryReturn;