'use client' import { useState } from 'react' export function SubstackEmbed() { const [isLoading, setIsLoading] = useState(true) const [hasError, setHasError] = useState(false) const handleLoad = () => { setIsLoading(false) } const handleError = () => { setIsLoading(false) setHasError(true) } if (hasError) { return (

Unable to load newsletter signup form.

Subscribe on Substack
) } return (
{isLoading && (
)}