EncryptedIcon.tsx 581 B

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