EncryptedIcon.tsx 537 B

123456789101112131415161718192021
  1. import { shield } from "../../components/icons";
  2. import { Tooltip } from "../../components/Tooltip";
  3. import { useI18n } from "../../i18n";
  4. export const EncryptedIcon = () => {
  5. const { t } = useI18n();
  6. return (
  7. <a
  8. className="encrypted-icon tooltip"
  9. href="https://blog.excalidraw.com/end-to-end-encryption/"
  10. target="_blank"
  11. rel="noopener noreferrer"
  12. aria-label={t("encrypted.link")}
  13. >
  14. <Tooltip label={t("encrypted.tooltip")} long={true}>
  15. {shield}
  16. </Tooltip>
  17. </a>
  18. );
  19. };