reloadWebContainer = async () => {
    if (!url) return;
    const iframe = document.querySelector('iframe');
    if (!iframe) return;
    try {
      if (error) {
        setError(null);
      }
      await reloadPreview(iframe);
    } catch (err) {
      console.error(`Error reloading preview: ${err.message}`);
      setError(
        'WebContainer failed to load. Please try reloading or use a different browser.',
      );
    }
  }
Function to reload the WebContainer preview.