Delete weirdly unused code

inb4 somehow this breaks the whole project
This commit is contained in:
AnimeDL 2024-06-20 10:34:07 -07:00
parent 575ea260b6
commit 1f8ddb27a1

View file

@ -1,12 +0,0 @@
import React from 'react';
import { StoreAction, StoreContext, StoreState } from '../provider/Store';
const useStore = () => {
const context = React.useContext(StoreContext as unknown as React.Context<[StoreState, React.Dispatch<StoreAction<keyof StoreState>>]>);
if (!context) {
throw new Error('useStore must be used under Store');
}
return context;
};
export default useStore;