// SPDX-License-Identifier: BUSL-1.1; Copyright (c) 2025 Social Connect Labs, Inc.; Licensed under BUSL-1.1 (see LICENSE); Apache-2.0 from 2029-06-11

import React from 'react';
import { Platform } from 'react-native';
import { Anchor, styled } from 'tamagui';

const StyledAnchor = styled(Anchor, {
  fontSize: 15,
  fontFamily: 'DINOT-Medium',
  textDecorationLine: 'underline',
});

interface BackupDocumentationLinkProps {}

const BackupDocumentationLink: React.FC<
  BackupDocumentationLinkProps
> = ({}) => {
  if (Platform.OS === 'ios') {
    return (
      <StyledAnchor unstyled href="https://support.apple.com/en-us/102651">
        iCloud data
      </StyledAnchor>
    );
  }
  return (
    <StyledAnchor
      unstyled
      href="https://developer.android.com/identity/data/autobackup"
    >
      Android Backup
    </StyledAnchor>
  );
};

export default BackupDocumentationLink;
