mirror of
https://github.com/ConvoyPanel/panel.git
synced 2026-06-11 06:20:47 +08:00
15 lines
409 B
TypeScript
15 lines
409 B
TypeScript
import useSWR, { SWRConfiguration } from 'swr'
|
|
|
|
import getBootOrder, {
|
|
BootOrderSettings,
|
|
} from '@/api/server/settings/getBootOrder'
|
|
|
|
const useBootOrderSWR = (serverUuid: string, config?: SWRConfiguration) => {
|
|
return useSWR<BootOrderSettings>(
|
|
['server:settings:hardware:boot-order', serverUuid],
|
|
() => getBootOrder(serverUuid),
|
|
config
|
|
)
|
|
}
|
|
|
|
export default useBootOrderSWR |