import React from 'react';
import { createRoot } from 'react-dom/client';
import BookIndex from './BookIndex';

const { title, logoText, pages } = window.__BOOK_DATA__;
createRoot(document.getElementById('root')!).render(
  <BookIndex title={title} logoText={logoText} pages={pages} />
);
