import { Button, Flex, Input, Stack, Text } from '@chakra-ui/react'; import { __ } from '@wordpress/i18n'; import React from 'react'; import { BiCheck, BiSolidCopy } from 'react-icons/bi'; interface Props { onCopyValueChange: (value: string) => void; hasCopied: boolean; value: string; onCopy: () => void; } const ClassroomTextAndLinkSection: React.FC = ({ onCopyValueChange, hasCopied, value, onCopy, }) => { return ( {__('Setup your', 'learning-management-system')}{' '} {__('Google Classroom', 'learning-management-system')} {' '} {__('integration', 'learning-management-system')} {__( 'To seamlessly integrate with Google Classroom, access the following', 'learning-management-system', )}{' '} window.open('https://console.cloud.google.com/apis', '_blank') } > {__('link', 'learning-management-system')} {' '} {__( `to generate your OAuth Access Credentials. Throughout this procedure, ensure that you copy the provided link below and use it as your Redirect URI. For detailed instructions, please refer to our`, 'learning-management-system', )}{' '} window.open( 'https://docs.masteriyo.com/free-addons/google-classroom-integration', '_blank', ) } > {__('documentation', 'learning-management-system')} {' '} {__( 'on setting up OAuth Access Credentials.', 'learning-management-system', )} onCopyValueChange(e.target.value)} /> ); }; export default ClassroomTextAndLinkSection;