import React from "react";
import { locales } from "@pisell/utils";
import classNames from "classnames";
//#region src/components/pisellTimeNavigator/components/NowButton.tsx
const I18N_NOW = "pisell-time-navigator.now";
/**
* Now 按钮：固定入口，点击跳回当前时间并进入 Realtime
* 横向：右侧，左箭头；竖向：底部，上箭头
*/
function NowButton({ orientation, onClick, style, className, renderCustom }) {
	const raw = locales.getText(I18N_NOW);
	const label = raw && raw !== I18N_NOW ? raw : "Now";
	if (renderCustom) return /* @__PURE__ */ React.createElement("button", {
		type: "button",
		className: classNames("pisell-time-navigator-now", className),
		onClick,
		style,
		"aria-label": label
	}, renderCustom());
	return /* @__PURE__ */ React.createElement("button", {
		type: "button",
		className: classNames("pisell-time-navigator-now", `pisell-time-navigator-now--${orientation}`, className),
		onClick,
		style,
		"aria-label": label
	}, /* @__PURE__ */ React.createElement("span", {
		className: "pisell-time-navigator-now-icon",
		"aria-hidden": true
	}), /* @__PURE__ */ React.createElement("span", { className: "pisell-time-navigator-now-label" }, label));
}
//#endregion
export { NowButton };
