UNPKG

@lunit/oui

Version:

Lunit Oncology UI components

34 lines (33 loc) 891 B
import { SelectChangeEvent } from '@mui/material/Select'; import { ScoreProps } from '../Score'; interface ModelTypeOption { title: string; target: { visualizationType: string; annotation: { name: string; dimension: string; color: string; }; }; key: string; value: number; sensitivity: number; specificity: number; } export interface ModelTypeSpec { componentType: 'modelType'; title: string; optionTitle?: string; scoreItems: Record<string, ScoreProps[]>; currentSensitivity: ScoreProps; currentSpecificity: ScoreProps; options: ModelTypeOption[]; userModelType: string; description?: string; } export interface ModelTypeProps extends ModelTypeSpec { onChangeDropdown: (event: SelectChangeEvent) => void; onClickUpdateConfiguration: () => void; } export {};