Your Name 1912bcd25b
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
chore: sync all remaining local workspace changes
2026-05-08 11:26:57 +08:00

67 lines
2.0 KiB
JavaScript

/*
* Extracted from browser-delivered Turbopack chunk: 024a3642cfddfa89.95b9211528.js
* Module id: 636820
* For reading/searching only; this factory depends on the original Turbopack runtime.
*/
const moduleFactory = (e) => {
"use strict";
var t = e.i(462214),
r = e.i(358379),
s = e.i(41671),
i = e.i(41114);
let n = (0, r.memo)(function ({
icon: e,
iconElement: r,
label: n,
active: l,
disabled: a,
onClick: o,
className: c,
}) {
return (0, t.jsxs)("button", {
type: "button",
disabled: a,
onClick: o,
className: (0, i.cn)(
"border-border-default border-hair flex size-12 flex-col items-center justify-center gap-0.5 rounded-lg p-1 transition-colors",
a ? "cursor-not-allowed" : "cursor-pointer",
l
? "bg-canvas-controls-active canvas-light:bg-transparent canvas-light:shadow-[inset_0_0_0_1px_var(--canvas-controls-border)]"
: "bg-transparent",
!a && "hover:bg-btn-ghost-hover active:bg-btn-ghost-active",
c,
),
children: [
r ??
(e &&
(0, t.jsx)(s.IconifyIcon, {
icon: e,
className: a
? "text-fg-disabled"
: l
? "text-canvas-controls-text"
: "text-fg-muted canvas-light:text-neutral-700",
})),
n
? (0, t.jsx)("span", {
className: (0, i.cn)(
"text-center text-[10px] leading-3",
a
? "text-fg-disabled"
: l
? "text-canvas-controls-text"
: "text-fg-muted canvas-light:text-neutral-700",
),
style: e || r ? void 0 : { maxWidth: "2.5em" },
children: n,
})
: null,
],
});
});
e.s(["ActionButton", 0, n]);
};
export default moduleFactory;