Function create

  • Create the pre-built UI for the terms and conditions screen.

    Parameters

    • terms: Terms

      The legal terms to display to the user

    • onAccept: (() => void)

      Callback fired when the user accepts the offer

        • (): void
        • Returns void

    • onBack: (() => void)

      Callback fired when the user backs away from the screen

        • (): void
        • Returns void

    • theme: Theme = ...

      Theme used to style the UI

    Returns Promise<HTMLDivElement>