Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
44 lines
1.1 KiB
Plaintext
44 lines
1.1 KiB
Plaintext
'use client';
|
|
|
|
import { c as _c } from "react/compiler-runtime";
|
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
import { Fragment } from 'react';
|
|
import { CopyIcon } from '../../icons/Copy/index.js';
|
|
import { EditIcon } from '../../icons/Edit/index.js';
|
|
import { useTranslation } from '../../providers/Translation/index.js';
|
|
export const ClipboardActionLabel = t0 => {
|
|
const $ = _c(4);
|
|
const {
|
|
isPaste,
|
|
isRow
|
|
} = t0;
|
|
const {
|
|
t
|
|
} = useTranslation();
|
|
let t1;
|
|
if ($[0] !== isPaste || $[1] !== isRow || $[2] !== t) {
|
|
let label = t("general:copyField");
|
|
if (!isRow && isPaste) {
|
|
label = t("general:pasteField");
|
|
} else {
|
|
if (isRow && !isPaste) {
|
|
label = t("general:copyRow");
|
|
} else {
|
|
if (isRow && isPaste) {
|
|
label = t("general:pasteRow");
|
|
}
|
|
}
|
|
}
|
|
t1 = _jsxs(Fragment, {
|
|
children: [isPaste ? _jsx(EditIcon, {}) : _jsx(CopyIcon, {}), " ", label]
|
|
});
|
|
$[0] = isPaste;
|
|
$[1] = isRow;
|
|
$[2] = t;
|
|
$[3] = t1;
|
|
} else {
|
|
t1 = $[3];
|
|
}
|
|
return t1;
|
|
};
|
|
//# sourceMappingURL=ClipboardActionLabel.js.map |