PK œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
| Dir : /home/ngamzghe/public_html/wp-content/plugins/extendify/src/Draft/components/ |
| Server: Linux server1.ngambekcore.com 4.18.0-553.51.1.el8_10.x86_64 #1 SMP Wed Apr 30 04:00:07 EDT 2025 x86_64 IP: 159.198.77.92 |
| Dir : /home/ngamzghe/public_html/wp-content/plugins/extendify/src/Draft/components/ConsentSidebar.jsx |
import { Panel } from '@wordpress/components';
import { __ } from '@wordpress/i18n';
import { useAIConsentStore } from '@shared/state/ai-consent';
export const ConsentSidebar = () => {
const { consentTermsHTML, 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: consentTermsHTML }}
/>
<button
className="mt-4 w-full cursor-pointer rounded 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>
);
};