import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
export function TreeOperationConfirmContent({ title, description, }) {
    return (_jsxs("div", { className: "space-y-3", children: [_jsx("p", { children: title }), description ? (_jsx("ul", { className: "text-sm text-muted-foreground list-disc pl-4 space-y-0.5", children: description.split(", ").map((item, i) => (_jsx("li", { children: item }, `${i}:${item}`))) })) : null] }));
}
export function ExternalChangesWarningContent({ impact, }) {
    return (_jsxs("div", { children: [_jsx("p", { className: "mb-2", children: impact.affectedSummary }), _jsx("p", { className: "mb-2 text-orange-600 font-medium", children: `${impact.externalChangesCount} operation(s) by other users will be lost.` }), _jsx("p", { className: "text-xs text-gray-600 mb-2", children: `Users affected: ${impact.externalUsers.join(", ")}` }), impact.sampleOperations.length > 0 ? (_jsxs("div", { className: "text-xs text-gray-500 mt-2", children: [_jsx("p", { className: "font-medium", children: "Recent operations that will be lost:" }), _jsx("ul", { className: "list-disc list-inside mt-1", children: impact.sampleOperations.slice(0, 3).map((op, i) => (_jsx("li", { children: `${op.title} (by ${op.username})` }, i))) })] })) : null] }));
}
export function UndoDifferentItemContent({ operationTitle, itemId, itemLanguage, }) {
    const itemIdPreview = `${itemId.substring(0, 8)}...`;
    const languageSuffix = itemLanguage !== "en" ? ` (${itemLanguage})` : "";
    return (_jsxs("div", { children: [_jsx("p", { className: "mb-2", children: "This operation affects a different item than the one currently loaded." }), _jsxs("p", { className: "text-xs text-gray-600", children: [`Operation: ${operationTitle}`, _jsx("br", {}), `Item ID: ${itemIdPreview}${languageSuffix}`] })] }));
}
//# sourceMappingURL=OperationDialogContent.js.map