import { Component, Match, Switch } from "solid-js"; import { CellValue, CellValueAlt, CellValueChrom, CellValueFilter, CellValueFormat, CellValueGenotype, CellValueId, CellValueInfo, CellValuePos, CellValueQual, CellValueRef, ConfigCellCustom, ConfigCellGenotype, ConfigCellInfo, ConfigCellItem, } from "../../types/configCells"; import { ErrorNotification } from "../ErrorNotification"; import { FieldComposed } from "./composed/FieldComposed"; import { CellValueCustom } from "../../types/configCellComposed"; import { FieldGenotype } from "./genotype/FieldGenotype"; import { FieldInfo } from "./info/FieldInfo"; import { FieldChrom } from "./FieldChrom"; import { FieldPos } from "./FieldPos"; import { FieldId } from "./FieldId"; import { FieldRef } from "./FieldRef"; import { FieldAlt } from "./FieldAlt"; import { FieldQual } from "./FieldQual"; import { FieldFilter } from "./FieldFilter"; import { FieldFormat } from "./FieldFormat"; export const Field: Component<{ config: ConfigCellItem; value: CellValue; }> = (props) => { const type = () => props.config.type; return ( }> <> } value={props.value as CellValueCustom} /> ); };