/** * External dependencies */ import { __ } from '@wordpress/i18n'; import { Button, CheckboxControl } from '@wordpress/components'; import { useState } from '@wordpress/element'; import interpolateComponents from '@automattic/interpolate-components'; import { Link } from '@woocommerce/components'; /** * Internal dependencies */ import { IntroOptInEvent } from '../events'; import { Heading } from '../components/heading/heading'; import { Navigation } from '../components/navigation/navigation'; export const IntroOptIn = ( { sendEvent, navigationProgress, }: { sendEvent: ( event: IntroOptInEvent ) => void; navigationProgress: number; } ) => { const [ iOptInDataSharing, setIsOptInDataSharing ] = useState< boolean >( true ); return (