/** * External dependencies */ import { Col, Container, Text } from '@automattic/jetpack-components'; import { __ } from '@wordpress/i18n'; /** * Internal dependencies */ import { usePermission } from '../../hooks/use-permission'; import { useVideoPressSettings } from '../../hooks/use-videopress-settings'; import { CheckboxCheckmark } from '../video-filter'; import { SiteSettingsSectionProps } from './types'; /** * Types */ import type React from 'react'; /** * VideoPress SettingsSection component * * @param {SiteSettingsSectionProps} props - Component props. * @returns {React.ReactElement} Component template */ const SiteSettingsSection: React.FC< SiteSettingsSectionProps > = ( { videoPressVideosPrivateForSite, onPrivacyChange, } ) => { const { canPerformAction } = usePermission(); return ( { __( 'Settings', 'jetpack-videopress-pkg' ) } ); }; export const ConnectSiteSettingsSection = () => { const { settings, onUpdate } = useVideoPressSettings(); const { videoPressVideosPrivateForSite } = settings; return ( { onUpdate( { videoPressVideosPrivateForSite: newPrivacyValue, } ); } } /> ); }; export default SiteSettingsSection;