import { WPCOM_FEATURES_SUBSCRIPTION_GIFTING } from '@automattic/calypso-products';
import { ToggleControl } from '@wordpress/components';
import { useTranslate } from 'i18n-calypso';
import InlineSupportLink from 'calypso/components/inline-support-link';
import { PanelCard, PanelCardDescription, PanelCardHeading } from 'calypso/components/panel';
import isSiteWpcomStaging from 'calypso/state/selectors/is-site-wpcom-staging';
import siteHasFeature from 'calypso/state/selectors/site-has-feature';
import { useSelectedSiteSelector } from 'calypso/state/sites/hooks';
export default function SubscriptionGiftingForm( { fields, handleAutosavingToggle, disabled } ) {
const translate = useTranslate();
const hasSubscriptionGifting = useSelectedSiteSelector(
siteHasFeature,
WPCOM_FEATURES_SUBSCRIPTION_GIFTING
);
const isWpcomStagingSite = useSelectedSiteSelector( isSiteWpcomStaging );
if ( ! hasSubscriptionGifting || isWpcomStagingSite ) {
return;
}
const renderForm = () => {
return (
<>
>
);
};
return (
{ translate( 'Accept a gift subscription' ) }
{ translate(
"Allow a site visitor to cover the full cost of your site's WordPress.com plan. {{a}}Learn more{{/a}}",
{
components: {
a: ,
},
}
) }
{ renderForm() }
);
}