Function create

  • Create the pre-built UI for the settings screen.

    Parameters

    • offer: Offer

      The Offer to present to the user

    • isOptIn: boolean

      True if the user is currently opted in to the offer

    • onBack: (() => void)

      Callback fired when the user backs away from the screen

        • (): void
        • Returns void

    • onLearnMore: (() => void)

      Callback fired when the user selects the learn more button

        • (): void
        • Returns void

    • onOpt: (() => void)

      Callback fired when the user selects opt in/out button

        • (): void
        • Returns void

    • theme: Theme = ...

      Theme used to style the UI

    Returns HTMLDivElement