"use client";
import { useId } from "react";
/*
* Tab Overload – a small card illustration, in a single self-contained file.
* Three overlapping browser windows; the front one is active with colored dots, an outline and a glow.
* Hover a window behind it and the highlight moves over to that one.
* The artwork is drawn on a 360 × 240 viewBox and fades out towards the right and bottom edge.
*/
export type TabOverloadProps = {
className?: string;
/** Accessible description of the scene */
label?: string;
};
/** Offsets of the three windows (top-left corner of each frame) */
const windows = [
{ n: 1, x: 30, y: 68 },
{ n: 2, x: 125, y: 56 },
{ n: 3, x: 220, y: 44 },
] as const;
export function TabOverload({
className,
label = "Three overlapping browser windows full of placeholder content",
}: TabOverloadProps) {
const id = "ui-to" + useId().replace(/[^a-zA-Z0-9_-]/g, "");
return (
{/* React 19 hoists this into once, no matter how many instances render */}