philips-software/cogito

View on GitHub
workspaces/demo-app/src/components/cogito-address/CogitoAddress.js

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
import React from 'react'
import { PropTypes } from 'prop-types'

import { Centered } from '@react-frontend-developer/react-layout-helpers'
import { Identity } from './Identity'
import { IdentityControls } from './IdentityControls'
import { IdentityFeedback } from './IdentityFeedback'

const CogitoAddress = ({ telepathChannel, newChannel }) => (
  <Centered>
    <Identity />
    <IdentityControls telepathChannel={telepathChannel} newChannel={newChannel} />
    <IdentityFeedback />
  </Centered>
)

CogitoAddress.propTypes = {
  telepathChannel: PropTypes.object,
  newChannel: PropTypes.func
}

export { CogitoAddress }