// Copyright (C) 2021, Mindee. // This program is licensed under the Apache License version 2. // See LICENSE or go to for full license details. import React from "react"; import { Box, makeStyles, Theme, Typography } from "@material-ui/core"; import { Card } from "@mindee/web-elements.ui.card"; import { ModelConfig } from "src/common/types"; import { SelectInput } from "@mindee/web-elements.ui.select-input"; import { DET_CONFIG, RECO_CONFIG } from "src/common/constants"; import { FONTS } from "@mindee/web-elements.assets"; const COMPONENT_ID = "Sidebar"; const useStyles = makeStyles((theme: Theme) => ({ wrapper: { height: "100%", }, item: { rowGap: 5, }, })); interface Props { detConfig: ModelConfig; setDetConfig: (value: any) => void; recoConfig: ModelConfig; setRecoConfig: (value: any) => void; } export default function Sidebar({ detConfig, setDetConfig, recoConfig, setRecoConfig, }: Props): JSX.Element { const classes = useStyles(); return ( 1 - Select a Model } contentStyle={{ paddingTop: 10, }} id={COMPONENT_ID} className={classes.wrapper} > Detection model setDetConfig(value)} options={Object.values(DET_CONFIG)} /> Recognition model setRecoConfig(value)} options={Object.values(RECO_CONFIG)} /> ); }