'use client'; import { Button } from '@/components/ui/button'; import { cn } from '@/lib/utils'; import type { AssignmentRangePoint } from './assignmentRange'; interface AssignmentRangeActionsProps { point: AssignmentRangePoint; startPoint: AssignmentRangePoint | null; endPoint: AssignmentRangePoint | null; onSetStart: (point: AssignmentRangePoint) => void; onSetEnd: (point: AssignmentRangePoint) => void; stretch?: boolean; className?: string; } export function AssignmentRangeActions({ point, startPoint, endPoint, onSetStart, onSetEnd, stretch = false, className, }: AssignmentRangeActionsProps) { const isStart = point.detectionId === startPoint?.detectionId; const isEnd = point.detectionId === endPoint?.detectionId; return (