mirror of
https://github.com/pterodactyl/panel.git
synced 2026-11-30 11:25:52 -05:00
Co-authored-by: Anthony <anthony@infraly.co> Co-authored-by: Sky Mulley <daniel.mulley@outlook.com>
11 lines
380 B
TypeScript
11 lines
380 B
TypeScript
import { useQuery, queryOptions } from '@tanstack/react-query';
|
|
|
|
import { clientListServerPermissionsOptions } from '@/api/generated/@tanstack/react-query.gen';
|
|
|
|
export const systemPermissionsQueryOptions = queryOptions({
|
|
...clientListServerPermissionsOptions(),
|
|
staleTime: Infinity,
|
|
});
|
|
|
|
export const useSystemPermissions = () => useQuery(systemPermissionsQueryOptions);
|