import { StrictMode } from 'react'
import { createRoot } from 'react-dom/client'
import 'daisyui';
import './index.css'
import App from './App'
import { Buffer } from 'buffer';

declare global {
  interface Window {
    Buffer: typeof Buffer;
  }
}
window.Buffer = window.Buffer || Buffer;

import { QueryClientProvider } from "@tanstack/react-query";

import { queryClient } from "./lib/queryClient";

createRoot(document.getElementById("root")!).render(
  <StrictMode>
    <QueryClientProvider client={queryClient}>
      <App />
    </QueryClientProvider>
  </StrictMode>
);