use-cookie-popup
Version:
React hook to work with cookie popup
6 lines (5 loc) • 314 B
TypeScript
import { SerializeOptions } from "cookie";
declare const getCookies: () => Partial<Record<string, string>> | undefined;
declare const getCookie: (key: string) => string | undefined;
declare const setCookie: (key: string, data: any, options?: SerializeOptions) => void;
export { getCookies, getCookie, setCookie };