Files
openswarm/frontend/src/shared/dashboardClipboard.ts
T
ciregenz 5f5b932c53 [eric] tiny dead-code sweep — drop unused langchain pins from requirements.txt (saves ~5MB on packaged build) plus a few orphan exports left
over from past iterations (temp_state slice fields, clipboard timestamp getter, three never-imported lastSeq helpers).
2026-05-03 21:31:13 -07:00

28 lines
561 B
TypeScript

import type { CardType } from '@/app/pages/Dashboard/useDashboardSelection';
export interface ClipboardCard {
type: CardType;
id: string;
name: string;
meta: Record<string, any>;
x: number;
y: number;
width: number;
height: number;
expanded?: boolean;
}
let clipboardCards: ClipboardCard[] = [];
export function setClipboardCards(cards: ClipboardCard[]): void {
clipboardCards = cards;
}
export function getClipboardCards(): ClipboardCard[] {
return clipboardCards;
}
export function clearClipboard(): void {
clipboardCards = [];
}