import { useUiTranslation as e } from "../../i18n/useUiTranslation.js";
import { Button as t } from "../../atomic/atoms/button/Button.js";
import { InlineBanner as n } from "../feedback/InlineBanner.js";
import { jsx as r } from "react/jsx-runtime";
//#region src/components/subscriptions/RefetchNeededBanner.tsx
var i = ({ reason: i, onReload: a, className: o }) => {
	let { t: s } = e(), c = s("subscriptions.refetchNeeded.messages.default");
	return i === "CURSOR_REPLAY_UNAVAILABLE" ? c = s("subscriptions.refetchNeeded.messages.cursorReplayUnavailable") : i === "BUFFER_OVERFLOW" && (c = s("subscriptions.refetchNeeded.messages.bufferOverflow")), /* @__PURE__ */ r(n, {
		tone: "warning",
		title: s("subscriptions.refetchNeeded.title"),
		className: o,
		actions: /* @__PURE__ */ r(t, {
			type: "button",
			variant: "secondary",
			size: "small",
			onClick: a,
			children: s("subscriptions.refetchNeeded.actions.reload")
		}),
		children: c
	});
};
//#endregion
export { i as RefetchNeededBanner };

//# sourceMappingURL=RefetchNeededBanner.js.map