diff --git a/src/components/PhotoSwipe/InfoDialog/index.tsx b/src/components/PhotoSwipe/InfoDialog/index.tsx index 133390b86..b116b60fa 100644 --- a/src/components/PhotoSwipe/InfoDialog/index.tsx +++ b/src/components/PhotoSwipe/InfoDialog/index.tsx @@ -11,6 +11,14 @@ import { AppContext } from 'pages/_app'; import { Location, Metadata } from 'types/upload'; import Photoswipe from 'photoswipe'; import { getEXIFLocation } from 'services/upload/exifService'; +import { + PhotoPeopleList, + UnidentifiedFaces, +} from 'components/MachineLearning/PeopleList'; + +import { ObjectLabelList } from 'components/MachineLearning/ObjectList'; +import { WordList } from 'components/MachineLearning/WordList'; +import MLServiceFileInfoButton from 'components/MachineLearning/MLServiceFileInfoButton'; const FileInfoDialog = styled(Dialog)(({ theme }) => ({ zIndex: 1501, @@ -22,6 +30,12 @@ const FileInfoDialog = styled(Dialog)(({ theme }) => ({ }, })); +const Legend = styled('span')` + font-size: 20px; + color: #ddd; + display: inline; +`; + interface Iprops { shouldDisableEdits: boolean; showInfo: boolean; @@ -45,6 +59,7 @@ export function FileInfo({ }: Iprops) { const appContext = useContext(AppContext); const [location, setLocation] = useState(null); + const [updateMLDataIndex, setUpdateMLDataIndex] = useState(0); useEffect(() => { if (!location && metadata) { @@ -112,6 +127,43 @@ export function FileInfo({ {constants.SHOW_MAP} )} + {appContext.mlSearchEnabled && ( + <> +
+ {constants.PEOPLE} +
+ +
+ {constants.UNIDENTIFIED_FACES} +
+ +
+ {constants.OBJECTS} + +
+
+ {constants.TEXT} + +
+ + + )} {exif && ( <>