import { CopyToClipboard } from "react-copy-to-clipboard"; import { useTranslation } from "react-i18next"; import robotImage from "../../../assets/images/robot-2.png"; import robotImage2 from "../../../assets/images/robot-coin1.png"; import robotBgr from "../../../assets/images/robot-bgr.png"; import VideoSGPTBg from "../../../assets/sgpt-bg.mp4"; import Button from "../Button"; import { BsFacebook, BsDiscord, BsTwitter, BsTelegram, BsInstagram, BsRocketFill, } from "react-icons/bs"; import { IoCopyOutline } from "react-icons/io5"; import { TbAddressBook } from "react-icons/tb"; import { useSprings, useSpring, animated } from "@react-spring/web"; const socials = [ { name: "Telegram", icon: , link: "https://twitter.com/SGPT_SmartAi", background: "bg-[#2ca5e0]", }, { name: "Twitter", icon: , link: "https://twitter.com/SGPT_SmartAi", background: "bg-[#1da1f2]", }, { name: "Discord", icon: , link: "https://discord.com/invite/NNHV8JHBhk", background: "bg-[#7289da]", }, { name: "Facebook", icon: , link: "https://www.facebook.com/SGPTSmartAi", background: "bg-[#3b5998]", }, { name: "Instagram", icon: , link: "https://www.instagram.com/sgpt_smartai/", background: "bg-[#e1306c]", }, ]; const FirstSection = () => { const {t} = useTranslation('firstSection') const address = "0x3c97331438e90680a17c35905ffc2b8ef760f844"; const truncateAddress = (address: string) => { return address.slice(0, 5) + "......" + address.slice(-5); }; const copyToClipboard = (address: string) => { navigator.clipboard.writeText(address); }; const springs = useSpring({ from: { opacity: 0 }, to: { opacity: 1 }, }); return ( {t('title')} {/* A digital currency payment for chat bot services */} {t('content')} {t('addressBSC')} {truncateAddress(address)} {t('Community')} {socials.map((social) => ( window.open(social.link, "_blank")} > {social.icon} {social.name} ))} ); }; export default FirstSection;
{t('content')}