Files
pterodactyl-panel/resources/scripts/api/admin/languages/queries.ts
T
6c0413e39b Start 2.0 development
Co-authored-by: Anthony <anthony@infraly.co>
Co-authored-by: Sky Mulley <daniel.mulley@outlook.com>
2026-10-05 18:10:18 -04:00

14 lines
538 B
TypeScript

import { useQuery } from '@tanstack/react-query';
import { adminListLanguagesOptions } from '@/api/generated/@tanstack/react-query.gen';
import type { AdminListLanguagesResponse } from '@/api/generated';
export type AdminLanguages = AdminListLanguagesResponse;
export const adminLanguagesQueryOptions = () => adminListLanguagesOptions();
type AdminLanguagesQueryOptions = { enabled?: boolean };
export const useAdminLanguages = (options?: AdminLanguagesQueryOptions) =>
useQuery({ ...adminLanguagesQueryOptions(), ...options });