import React from 'react'; import type { Option } from 'react-select'; import Select from 'react-select'; import type { IApplicationSummary } from '../../../../application'; interface IApplicatonSelectorProps { applications: IApplicationSummary[]; applicationSelectCallback: (selection: Option) => void; selectedApplication: IApplicationSummary; } export default class ApplicationSelector extends React.Component { public render() { const { applications, applicationSelectCallback, selectedApplication } = this.props; const selectedApplicationOption: Option = selectedApplication ? { label: selectedApplication.name, value: selectedApplication.name } : null; return (
Application