import { useStudio as e } from "../providers/StudioProvider.js";
import { Button as t } from "../components/ui/button.js";
import n from "../components/layout/MainLayout.js";
import { NewRunDialog as r } from "../features/workbench/components/NewRunDialog.js";
import i from "../features/runs/Runs.js";
import { useState as a } from "react";
import { jsx as o, jsxs as s } from "react/jsx-runtime";
import { Home as c, Play as l } from "lucide-react";
//#region src/pages/RunsListPage.tsx
function u() {
	let { router: u } = e(), [d, f] = a(!1);
	return /* @__PURE__ */ s(n, {
		breadcrumbsData: [{
			label: "Dashboard",
			href: u.getDashboard(),
			icon: /* @__PURE__ */ o(c, { className: "h-4 w-4" })
		}, {
			label: "Runs",
			current: !0
		}],
		children: [
			/* @__PURE__ */ s("div", {
				className: "mb-4 flex items-center justify-between",
				children: [/* @__PURE__ */ o("h1", {
					className: "text-3xl font-bold tracking-tight",
					children: "Runs"
				}), /* @__PURE__ */ s(t, {
					variant: "default",
					size: "sm",
					className: "gap-1.5",
					onClick: () => f(!0),
					children: [/* @__PURE__ */ o(l, { className: "h-3.5 w-3.5" }), "New Run"]
				})]
			}),
			/* @__PURE__ */ o(i, {}),
			/* @__PURE__ */ o(r, {
				open: d,
				onOpenChange: f,
				onSuccess: (e) => {
					f(!1), u.navigateToWorkflow(e);
				}
			})
		]
	});
}
//#endregion
export { u as default };
