import { ExclamationTriangleIcon } from '@heroicons/react/24/outline'; interface ConnectAlertArgs { /** The connect hook's error message; nothing renders when empty */ message?: string; } /** * An inline warning, styled on the Tailwind UI "alert with icon" pattern * (https://tailwindcss.com/plus/ui-blocks/application-ui/feedback/alerts), * adapted for this card's dark background. * * Rendered directly under the button whose click produced the error, so it * reads as that click's outcome rather than an unrelated, page-level notice. * * @param root0 * @param root0.message */ export default function ConnectAlert( { message }: ConnectAlertArgs ) { if ( message === undefined || message === '' ) { return null; } return (

{ message } If the problem persists you can{ ' ' } , or the{ ' ' } support page { ' ' } has more information.

); }