import { useProjectStore } from "../../store/project-store"; function Variants() { const { inputMode, head, commits, updateSelectedVariantIndex } = useProjectStore(); // If there is no head, don't show the variants if (head === null) { return null; } const commit = commits[head]; const variants = commit.variants; const selectedVariantIndex = commit.selectedVariantIndex; // If there is only one variant or the commit is already committed, don't show the variants if (variants.length <= 1 || commit.isCommitted || inputMode === "video") { return
; } return (