mirror of
https://github.com/YuzuZensai/Termix.git
synced 2026-11-12 19:51:27 +00:00
29 lines
918 B
TypeScript
29 lines
918 B
TypeScript
import { useTranslation } from "@termix/plugin-sdk/frontend";
|
|||
|
|
|
||
|
|
const DOCS_URL = "https://docs.termix.site/features/authentication/opkssh";
|
||
|
|
|
||
|
|
/** The host editor's "opkssh" auth method: nothing to fill in, just a pointer. */
|
||
|
|
export function OpksshAuthEditor() {
|
||
|
|
const { t } = useTranslation();
|
||
|
|
return (
|
||
|
|
<div className="flex flex-col gap-2 border-t border-border pt-3">
|
||
|
|
<div className="flex items-center justify-between">
|
||
|
|
<span className="text-[10px] font-bold uppercase tracking-widest text-muted-foreground">
|
||
|
|
{t("editor.label")}
|
||
|
|
</span>
|
||
|
|
<a
|
||
|
|
href={DOCS_URL}
|
||
|
|
target="_blank"
|
||
|
|
rel="noreferrer"
|
||
|
|
className="text-[10px] text-accent-brand hover:underline"
|
||
|
|
>
|
||
|
|
{t("editor.docs")}
|
||
|
|
</a>
|
||
|
|
</div>
|
||
|
|
<p className="text-[10px] text-muted-foreground">
|
||
|
|
{t("editor.description")}
|
||
|
|
</p>
|
||
|
|
</div>
|
||
|
|
);
|
||
|
|
}
|