import { memo } from "react"; export type DiamondState = "active" | "inactive" | "ghost"; interface KeyframeDiamondProps { state: DiamondState; onClick: () => void; title?: string; size?: number; isHold?: boolean; } // fallow-ignore-next-line complexity export const KeyframeDiamond = memo(function KeyframeDiamond({ state, onClick, title, size = 10, isHold = false, }: KeyframeDiamondProps) { const isFilled = state === "active"; const opacity = state === "ghost" ? 0.25 : state === "inactive" ? 0.6 : 1; const color = state === "active" ? "#3CE6AC" : "#a3a3a3"; return ( ); });