import { Button } from '@wordpress/components'; import { useState } from '@wordpress/element'; import { api } from '../api'; import type { OAuthInitResponse } from '../types'; export default function ConnectionBanner(): JSX.Element { const [connecting, setConnecting] = useState(false); const [error, setError] = useState(null); const handleConnect = async (): Promise => { setConnecting(true); setError(null); try { const result = await api.post('/oauth/init'); window.location.href = result.redirect_url; } catch (err: unknown) { const message = err instanceof Error ? err.message : 'Failed to start connection. Please try again.'; setError(message); setConnecting(false); } }; return (

Welcome to Mintall Keep

Connect your store to protect product images with C2PA digital credentials and make them discoverable by AI shopping agents.

{error &&

{error}

}
); }