import React, { createContext, useContext, useState } from "react";
export const ListContext = createContext();
export const DispatchListContext = createContext();
export const ListProvider = ({ children }) => {
    const [value, setValue] = useState();
    return (React.createElement(ListContext.Provider, { value: value },
        React.createElement(DispatchListContext.Provider, { value: setValue }, children)));
};
export const useList = () => useContext(ListContext);
export const useDispatchList = () => useContext(DispatchListContext);
//# sourceMappingURL=index.js.map