1import {Component} from 'react'
2import {ImageInfo} from '../../util/expo-image-picker'
3import * as RPCTypes from '../../constants/types/rpc-gen'
4import * as Types from '../../constants/types/teams'
5
6type TeamProps = {
7  createdTeam?: boolean
8  showBack?: boolean
9  teamID: Types.TeamID
10  teamname: string
11  type: 'team'
12  wizard: boolean
13  onSkip: () => void
14}
15type ProfileProps = {
16  createdTeam?: false
17  onSkip?: undefined
18  type: 'profile'
19  showBack?: false
20  wizard?: false
21}
22
23export type Props = {
24  error: string
25  image?: ImageInfo
26  onBack: () => void
27  onClose: () => void
28  onSave: (
29    filename: string,
30    crop?: RPCTypes.ImageCropRect,
31    scaledWidth?: number,
32    offsetLeft?: number,
33    offsetTop?: number
34  ) => void
35  sendChatNotification?: boolean
36  submitting: boolean
37  waitingKey: string
38} & (TeamProps | ProfileProps)
39
40export default class Render extends Component<Props> {}
41