- {[refName, coord].filter(f => !!f).join(':')}
-
- {sources ? (
-
-
-
- color |
- source |
- score |
-
-
-
- {Object.entries(sources).map(([source, data]) => (
-
- |
- {source} |
- {data.score} |
-
- ))}
-
-
- ) : (
-
{source}
- )}
-
- )
- },
-)
-
-type Coord = [number, number]
-
-const VariantTooltip = observer(
- (props: {
- model: { featureUnderMouse: Feature; sources: Source[]; rowHeight: number }
- height: number
- offsetMouseCoord: Coord
- clientMouseCoord: Coord
- clientRect?: DOMRect
- TooltipContents?: TooltipContentsComponent
- }) => {
- return