2020-04-04 17:59:25 +00:00
|
|
|
import { ServerContext } from '@/state/server';
|
|
|
|
import { Server } from '@/api/server/getServer';
|
|
|
|
|
2020-07-30 05:02:00 +00:00
|
|
|
const useServer = (dependencies?: any[] | undefined): Server => {
|
|
|
|
return ServerContext.useStoreState(state => state.server.data!, dependencies);
|
2020-04-04 17:59:25 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
export default useServer;
|