HEX
Server: LiteSpeed
System: Linux dviragis.serveriai.lt 5.14.0-687.26.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Jul 14 16:32:02 EDT 2026 x86_64
User: lyrlavhsb (1106)
PHP: 8.3.19
Disabled: link, symlink, exec, passthru, proc_close, proc_get_status, proc_open, shell_exec, system, popen, pclose, dl, show_source, highlight_file, pcntl_exec, ini_restore, ini_alter, chgrp
Upload Files
File: /home/lyrlavhsb/public_html/wp-content/plugins/extendify/src/Draft/components/ConsentSidebar.jsx
import { useAIConsentStore } from '@shared/state/ai-consent';
import { Panel } from '@wordpress/components';
import { __ } from '@wordpress/i18n';

export const ConsentSidebar = () => {
	const { consentTerms, setUserGaveConsent } = useAIConsentStore();

	return (
		<Panel>
			<div className="p-4">
				<h2 className="mb-2 mt-0 text-lg">
					{__('Terms of Use', 'extendify-local')}
				</h2>
				<p className="m-0" dangerouslySetInnerHTML={{ __html: consentTerms }} />
				<button
					className="mt-4 w-full rounded-sm border-0 bg-wp-theme-main px-4 py-2 text-center text-white"
					type="button"
					onClick={() => setUserGaveConsent(true)}
					data-test="draft-terms-button"
				>
					{__('Accept', 'extendify-local')}
				</button>
			</div>
		</Panel>
	);
};