chiiya/haven

View on GitHub
src/store/index.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { HavenOptions } from "../types";
import translations from "../translations";

const store: HavenOptions = {
  prefix: "cookies",
  cookieAttributes: { expires: 365 },
  domains: [],
  cookies: {},
  lang: "en",
  type: "opt-in",
  services: [],
  notification: {
    position: "bottom",
    policyUrl: "/cookie-policy",
    styles: {
      background: "#3C366B",
      textColor: "#FFF",
      linkColor: "#F7FAFC",
      buttonBackgroundColor: "#F1D600",
      buttonBackgroundColorHover: "#F6E05E",
      buttonTextColor: "#1A202C"
    }
  },
  preferences: {
    styles: {
      textColor: "#666666",
      toggleBorder: "#666666",
      toggleBackground: "#9FD6AE"
    }
  },
  translations: translations
};

export default store;