misc_pterodactyl-panel/resources/scripts/plugins/useServer.ts
2020-07-29 22:02:00 -07:00

8 lines
277 B
TypeScript

import { ServerContext } from '@/state/server';
import { Server } from '@/api/server/getServer';
const useServer = (dependencies?: any[] | undefined): Server => {
return ServerContext.useStoreState(state => state.server.data!, dependencies);
};
export default useServer;