/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at https://mozilla.org/MPL/2.0/. */

/**
 * Embed viewer entry point.
 *
 * Minimal entry that mounts the EmbedViewer component with no additional chrome.
 */

import React from 'react';
import ReactDOM from 'react-dom/client';
import { TooltipProvider } from '@/components/ui/tooltip';
import { EmbedViewer } from './components/EmbedViewer';
import { ErrorBoundary } from './components/ErrorBoundary';
import '@/index.css';

ReactDOM.createRoot(document.getElementById('root')!).render(
  <React.StrictMode>
    <ErrorBoundary>
      <TooltipProvider delayDuration={300}>
        <EmbedViewer />
      </TooltipProvider>
    </ErrorBoundary>
  </React.StrictMode>
);
