import { ErrorBoundary } from '@/errors/ErrorBoundary';

import { AudioPlayer } from './components';
import { EnvDevelopment } from './components/EnvDevelopment/EnvDevelopment';
import { AppRoutes } from './scene/AppRoutes';
import { ServiceContextProvider } from './service/ServiceContext';

export const App = () => {
  return (
    <ServiceContextProvider>
      <EnvDevelopment />
      <ErrorBoundary>
        <AppRoutes />
      </ErrorBoundary>
      <AudioPlayer />
    </ServiceContextProvider>
  );
};

export default App;
