Skip to content

#1 PDF Application on GitHub that lets you edit PDFs on any device anywhere

721 B
Raw Blame
import React from "react";
import { useTranslation } from "react-i18next";
import { Button } from "@editor/ui/Button";
import "@editor/auth/ui/auth.css";

interface SelfHostedLinkProps {
  onClick: () => void;
  disabled?: boolean;
}

export const SelfHostedLink: React.FC<SelfHostedLinkProps> = ({
  onClick,
  disabled = false,
}) => {
  const { t } = useTranslation();

  return (
    <div className="navigation-link-container" style={{ marginTop: "1.5rem" }}>
      <Button
        variant="tertiary"
        onClick={onClick}
        disabled={disabled}
        className="navigation-link-button"
      >
        {t("setup.selfhosted.link", "or connect to a self hosted account")}
      </Button>
    </div>
  );
};