summaryrefslogtreecommitdiff
path: root/client/applet.js
blob: 80d40657e1b240e50fd9e661cc26a4d0a9ccc284 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import React, { Component } from 'react'

import { Container as FaceSearchContainer } from './faceSearch'
import { Container as NameSearchContainer } from './nameSearch'

export default class Applet extends Component {
  render() {
    // console.log(this.props)
    switch (this.props.payload.cmd) {
      case 'face_search':
        return <FaceSearchContainer {...this.props} />
      case 'name_search':
        return <NameSearchContainer {...this.props} />
      default:
        return <pre style={{ color: '#0f0' }}>{'Megapixels'}</pre>
    }
  }
}