import { useProjectStore } from "../../store/project-store"; function Variants() { const { head, commits, updateSelectedVariantIndex } = useProjectStore(); // TODO: Is HEAD null right? And check variants.length === 0 || if (head === null) { return null; } const variants = commits[head || ""].variants; const selectedVariantIndex = commits[head || ""].selectedVariantIndex; return (