/** * WordPress dependencies */ import { Button } from '@safe-wordpress/components'; import { useSelect } from '@safe-wordpress/data'; import { _x } from '@safe-wordpress/i18n'; /** * External dependencies */ import { LoadingAnimation } from '@nelio-content/components'; import { store as NC_DATA } from '@nelio-content/data'; import { SocialProfilesManager } from '@nelio-content/social-profiles-manager'; /** * Internal dependencies */ import './style.scss'; type ProfileConnectionStepProps = { readonly isDisabled: boolean; readonly previousStep: () => void; readonly nextStep: () => void; }; export const ProfileConnectionStep = ( { isDisabled, previousStep, nextStep, }: ProfileConnectionStepProps ): JSX.Element => { const isLoading = useSelect( ( select ) => ! select( NC_DATA ).hasFinishedResolution( 'getSocialProfiles' ), [] ); const socialProfilesCount = useSelect( ( select ) => select( NC_DATA ).getSocialProfileCount(), [] ); return (
{ _x( 'To schedule and share content, please connect your social media profiles now.', 'user', 'nelio-content' ) }
{ isLoading ?