import { cx as e } from "../../../theme/tools.js";
import { action as t, grid as n, gridSingle as r, gridStack as i } from "./DashboardQuickActions.css.js";
import { Fragment as a, jsx as o } from "react/jsx-runtime";
import s from "@plumile/router/routing/Link.js";
//#region src/components/dashboard/dashboard_quick_actions/DashboardQuickActions.tsx
var c = ({ actions: c, emptyState: l = null, layout: u = "grid" }) => {
	if (c.length === 0) return /* @__PURE__ */ o(a, { children: l });
	let d = c.length === 1;
	return /* @__PURE__ */ o("div", {
		className: e(n, {
			[i]: u === "stack",
			[r]: d
		}),
		children: c.map((e, n) => {
			let r = `${e.id}-${n}`;
			return /* @__PURE__ */ o(s, {
				to: e.href,
				className: t,
				children: e.label
			}, r);
		})
	});
};
//#endregion
export { c as DashboardQuickActions, c as default };

//# sourceMappingURL=DashboardQuickActions.js.map