Spaces:
Running
Running
File size: 310 Bytes
9cd6ddb |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
import React from "react";
export const PremiumContext = React.createContext({
open: false,
setOpen: (bool: boolean) => {},
});
export const usePremiumHook = () => {
const [open, setOpen] = React.useState(false);
return {
open,
setOpen(value: boolean) {
setOpen(value);
},
};
};
|