Skip to content

The open alternative to Salesforce, designed for AI.

926 B
Raw Blame
import { styled } from '@linaria/react';
import { useLingui } from '@lingui/react/macro';
import { IconLock } from 'twenty-ui/icon';
import { themeCssVariables } from 'twenty-ui/theme';

const PRIVACY_NOTE_ICON_SIZE = 12;

const StyledNote = styled.div`
  align-items: center;
  color: ${themeCssVariables.font.color.tertiary};
  display: flex;
  font-size: ${themeCssVariables.font.size.sm};
  gap: ${themeCssVariables.spacing[1]};
`;

const StyledNoteText = styled.span`
  line-height: 1.4;
  margin-block: calc((${PRIVACY_NOTE_ICON_SIZE}px - 1.4em) / 2);
`;

export const OnboardingImportPrivacyNote = () => {
  const { t } = useLingui();

  return (
    <StyledNote>
      <IconLock
        size={PRIVACY_NOTE_ICON_SIZE}
        color={themeCssVariables.font.color.tertiary}
      />
      <StyledNoteText>
        {t`Only you will be able to see your emails and events`}
      </StyledNoteText>
    </StyledNote>
  );
};