How to use the @times-components/user-state.USER_STATES.GUEST function in @times-components/user-state

To help you get started, we’ve selected a few @times-components/user-state examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github newsuk / times-components / packages / article / article.showcase.web.js View on Github external
type: "story"
    },
    {
      component: ({ boolean, color, select }, { decorateAction }) =>
        renderArticleConfig({
          boolean,
          color,
          decorateAction,
          hasScaling: false,
          link: ,
          select
        }),
      name: "Article teaser",
      platform: "web",
      type: "story",
      defaultUserState: USER_STATES.GUEST
    },
    {
      component: ({ boolean, color, select }, { decorateAction }) =>
        renderArticleConfig({
          boolean,
          color,
          decorateAction,
          hasScaling: false,
          link: ,
          select
        }),
      name: "Article metered expired",
      platform: "web",
      type: "story",
      defaultUserState: USER_STATES.RA_EXPIRED
    }