chore(react/ribbon): finalize language switcher

This commit is contained in:
Elian Doran
2025-08-22 15:40:15 +03:00
parent eff5b6459d
commit bf0213907e
5 changed files with 34 additions and 186 deletions

View File

@@ -0,0 +1,21 @@
import { CSSProperties } from "preact/compat";
import { t } from "../../services/i18n";
import { openInAppHelpFromUrl } from "../../services/utils";
interface HelpButtonProps {
className?: string;
helpPage: string;
style?: CSSProperties;
}
export default function HelpButton({ className, helpPage, style }: HelpButtonProps) {
return (
<button
class={`${className ?? ""} icon-action bx bx-help-circle`}
type="button"
onClick={() => openInAppHelpFromUrl(helpPage)}
title={t("open-help-page")}
style={style}
/>
);
}