import {platformFetch} from './platform'; import {useEffect,useState} from 'react'; import {notificationCategories,type NotificationCategory} from '../../shared/notification-preferences'; import type {State} from '../../shared/types'; export function StudioHelp(){return
Help and support

Connect your Picsart account, select a product photo, and review the exact credit price before generation. Review the finished media before copying it to WordPress.

Image tools include local edits that do not use generation credits. Remove background and Enhance use your connected Picsart account; their buttons show the exact credit price before you run them. The embedded Picsart editor is not available until automatic account provisioning is connected.

Copying adds a file to the Media Library. Adding a video to a product updates its description after your approval. You can also place media with the Picsart block.

If an operation needs checking, keep its job ID and check Picsart Drive before retrying. An uncertain submission is not automatically resubmitted.

Open Picsart Support Center · Contact Picsart support
;} export function NotificationPreferences({state,request,onSaved}:{state:State;request:(path:string,body?:unknown)=>Promise;onSaved:()=>Promise}){ const [error,setError]=useState('');const [busy,setBusy]=useState(false); const [delivery,setDelivery]=useState<{enabledAt:number;destination:string}>(); const [deliveryError,setDeliveryError]=useState('');const [deliveryAttempt,setDeliveryAttempt]=useState(0); useEffect(()=>{let active=true;setDelivery(undefined);setDeliveryError('');if(state.auth.subject)void request<{enabledAt:number;destination:string}>('/notification-delivery').then(value=>{if(active)setDelivery(value);}).catch(()=>{if(active)setDeliveryError('Could not load email preferences. Your saved choice has not changed.');});return()=>{active=false;};},[state.auth.subject,deliveryAttempt]); const preferences=state.notificationPreferences; const available=new Set(['setup','started','delayed','ready','exports','attention']); if(!preferences||!state.auth.authenticated)return null; return
Notification preferences

Choose which workspace notices you want. Job status and errors always remain in history. Optional emails use this site’s WordPress mail service. Push, promotions and support-reply subscriptions are not enabled.

{deliveryError&&

{deliveryError}

}{!delivery&&!deliveryError&&

Loading email preferences…

}{delivery&&}{Object.entries(preferences).filter(([category])=>available.has(category)).map(([category,enabled])=>)}{error&&

{error}

}
; } export function CloudPrivacy(){ const [busy,setBusy]=useState(false),[error,setError]=useState(''); return
Cloud privacy

You can disable cloud access for your WordPress account. Picsart tools will be hidden until you allow access again. To disconnect your Picsart account, open Picsart Settings.

{error&&

{error}

}
; }