import { Component, Show } from "solid-js"; import { FieldTypedMultiple } from "../typed/FieldTypedMultiple"; import { CellValueInheritanceModes } from "../../../types/configCellComposed"; import { ValueCategorical } from "../../../utils/vcf.ts"; export const FieldInheritanceModes: Component<{ value: CellValueInheritanceModes }> = (props) => { const inheritanceModesGene = (): ValueCategorical[] => props.value.inheritanceModesGene; const isArInheritance = () => { let isArInheritance = false; if ( (inheritanceModesGene() !== undefined && inheritanceModesGene().length === 0) || inheritanceModesGene().findIndex((category) => category?.value === "AR") !== -1 ) { isArInheritance = props.value.isPossibleCompound != null && props.value.isPossibleCompound; } return isArInheritance; }; return ( <> ); };