\r\n
\r\n {newSearchItem.loading &&
}\r\n {newSearchItem.error &&
}\r\n {!newSearchItem.loading &&\r\n !newSearchItem.error &&\r\n newSearchItem.value && (\r\n
\r\n \r\n
\r\n )}\r\n
\r\n );\r\n};\r\n\r\nexport default ArchiveTargetSearchItem;\r\n","// @flow\r\nimport React, { PureComponent } from \"react\";\r\nimport { connect } from \"react-redux\";\r\nimport { History, Location } from \"history\";\r\nimport { withRouter } from \"react-router\";\r\nimport { Dispatch } from \"react-redux\";\r\nimport QueryMatch from \"containers/QueryMatch\";\r\nimport produces from \"immer\";\r\n\r\nimport ArchiveTargetList from \"components/ArchiveTargets/ArchiveTargetList\";\r\nimport ArchiveTargetHomeCards from \"components/ArchiveTargets/ArchiveTargetList/ArchiveTargetHomeCards\";\r\nimport ArchiveTargetSearchFormCards from \"components/ArchiveTargets/ArchiveTargetList/ArchiveTargetSearchFormCards\";\r\nimport ArchiveTargetSearchForm from \"components/ArchiveTargets/ArchiveTargetSearchForm\";\r\nimport ArchiveTargetSearchItem from \"components/ArchiveTargets/ArchiveTargetSearchItem\";\r\nimport { openPickerModal, PickerType } from \"components/PickerModal\";\r\nimport { type ApiError, CardType, CardItemType } from \"data/types\";\r\nimport { getArchiveTargets /*, submitArchiveForm*/ } from \"data/api\";\r\nimport { getLocalizedText } from \"data/utils\";\r\nimport Constants, { type ConstantsEnum } from \"data/constants\";\r\nimport Status from \"components/Status\";\r\nimport NoData from \"components/NoData\";\r\nimport { globalSitesAreaSelector } from \"data/storeHelper\";\r\nimport * as s from \"data/reducers/selectors\";\r\nimport loc from \"i18next\";\r\n\r\ntype Props = {\r\n /** whether to show list of archive targets */\r\n show: boolean,\r\n /** callback when target found\r\n * @param {string} targetItemUri target's itemUri to archive onto\r\n */\r\n onTargetItemUri: (targetItemUri: string) => void,\r\n /** Redux dispatch */\r\n dispatch: Dispatch,\r\n /** React-Router history object */\r\n history: History,\r\n /** redux isOnline */\r\n isOnline: boolean,\r\n location: Location,\r\n};\r\n\r\ntype State = {\r\n status: ConstantsEnum,\r\n targetItemUri: ?string,\r\n archiveTargets: ?Array