mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-04-30 02:52:29 +00:00
17 lines
401 B
TypeScript
17 lines
401 B
TypeScript
import { DNSProvidersAcmesh, getDNSProvidersAcmesh } from "api/npm";
|
|
import { useQuery } from "react-query";
|
|
|
|
const useDNSProvidersAcmesh = (options = {}) => {
|
|
return useQuery<DNSProvidersAcmesh[], Error>(
|
|
["dns-providers-acmesh"],
|
|
() => getDNSProvidersAcmesh(),
|
|
{
|
|
keepPreviousData: true,
|
|
staleTime: 60 * 60 * 1000, // 1 hour
|
|
...options,
|
|
},
|
|
);
|
|
};
|
|
|
|
export { useDNSProvidersAcmesh };
|