import { useEffect } from 'react';
import { HashRouter } from 'react-router-dom';
import { useLocale } from './i18n';
import { AppRouter } from './router';
import { initSettingsStore } from './stores';

export default function App() {
  useLocale();

  useEffect(() => {
    void initSettingsStore();
  }, []);

  return (
    <HashRouter>
      <AppRouter />
    </HashRouter>
  );
}
