"use client"; import { clsx } from "clsx"; import { memo } from "react"; interface ConflictOverlayProps { /** Pixel left offset within the canvas */ left: number; /** Pixel width */ width: number; /** Row height */ height: number; /** Conflict type */ type: "availability" | "overlap" | "budget"; message?: string; } export const ConflictOverlay = memo(function ConflictOverlay({ left, width, height, type, message }: ConflictOverlayProps) { const colors = { availability: "bg-red-400/30 border-red-400", overlap: "bg-orange-400/30 border-orange-400", budget: "bg-yellow-400/30 border-yellow-400", }; return (
{type === "availability" ? "⚡ conflict" : type === "overlap" ? "⚠ overlap" : "💰 over budget"}
); });