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

export default function App() {
  useEffect(() => {
    void initSettingsStore();
  }, []);

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