content: import React from 'react'
  import { ShellScreen, Type } from '@blockstack/ui'
  import PropTypes from 'prop-types'
  
  class Success extends React.Component {
    componentDidMount() {
      setTimeout(() => this.props.finish(), 3500)
    }
  
    render() {
      const { finish, ...rest } = this.props
  
      const props = {
        title: {
          children: 'All done!',
          variant: 'h2'
        },
        content: {
          grow: 1,
          children: (
            <>
              <Type.p>
                You have successfully updated the latest version of the Blockstack
                browser. You will be redirected shortly.
              </Type.p>
            </>
          )
        },
        actions: {
          items: [
            {
              label: <>Continue</>,
              primary: true,
              onClick: () => finish(),
              loading: true,
              placeholder: 'Redirecting...',
              disabled: true
            }
          ]
        }
      }
      return <ShellScreen {...rest} {...props} />
    }
  }
  
  Success.propTypes = {
    finish: PropTypes.func.isRequired,
    app: PropTypes.object
  }
  
  export default Success
  