import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
import { Toaster } from 'sonner';
import { SetupWizard } from './SetupWizard';

const queryClient = new QueryClient({
  defaultOptions: {
    queries: {
      refetchOnWindowFocus: false,
      retry: 1,
    },
  },
});

export function SelectRepoApp() {
  return (
    <QueryClientProvider client={queryClient}>
      <Toaster
        position="top-right"
        toastOptions={{
          style: {
            border: '2px solid black',
            fontFamily: 'Crimson Pro, serif',
          },
          className: 'toast',
        }}
      />
      <SetupWizard />
    </QueryClientProvider>
  );
}
