import { useContext } from "react";
import {
  CategoryType,
  CookieConsent,
} from "@/contexts/CookieConsent";

const useCookieContext = (): {
  shouldShowConsent: Boolean;
  preferences: CategoryType[];
  update: Function;
  close: Function;
  open: Function;
} => useContext(CookieConsent);

export default useCookieContext;
