@grafana/ui
Version:
Grafana Components Library
21 lines (16 loc) • 966 B
JavaScript
;
Object.defineProperty(exports, '__esModule', { value: true });
var jsxRuntime = require('react/jsx-runtime');
var i18n = require('@grafana/i18n');
var Button = require('../../Button/Button.cjs');
var Stack = require('../../Layout/Stack/Stack.cjs');
;
function Footer({ onClose, onApply }) {
return /* @__PURE__ */ jsxRuntime.jsxs(Stack.Stack, { gap: 2, justifyContent: "space-between", children: [
/* @__PURE__ */ jsxRuntime.jsx(Button.Button, { variant: "secondary", onClick: onClose, children: /* @__PURE__ */ jsxRuntime.jsx(i18n.Trans, { i18nKey: "time-picker.calendar.cancel-button", children: "Cancel" }) }),
/* @__PURE__ */ jsxRuntime.jsx(Button.Button, { onClick: onApply, children: /* @__PURE__ */ jsxRuntime.jsx(i18n.Trans, { i18nKey: "time-picker.calendar.apply-button", children: "Apply time range" }) })
] });
}
Footer.displayName = "Footer";
exports.Footer = Footer;
//# sourceMappingURL=CalendarFooter.cjs.map