Very basic implemention of frontend logic required to display backups and create a new one

This commit is contained in:
Dane Everitt
2020-04-04 10:59:25 -07:00
parent 17ec4efd3b
commit 9991989f89
16 changed files with 431 additions and 2 deletions

View File

@@ -0,0 +1,9 @@
import { DependencyList } from 'react';
import { ServerContext } from '@/state/server';
import { Server } from '@/api/server/getServer';
const useServer = (dependencies?: DependencyList): Server => {
return ServerContext.useStoreState(state => state.server.data!, [ dependencies ]);
};
export default useServer;