import React from "react";
import FortressApp from "./fortress-app";
import { FortressEntryProps } from "./types/type";
import { Provider } from "react-redux";
import { store } from "./redux/store";

/**
 * Renders the main application component.
 *
 * @param {FortressEntryProps} props - The props for the Fortress component.
 * @return {JSX.Element} The rendered application component.
 */
const Fortress = (props: FortressEntryProps): JSX.Element => {
  return (
    <Provider store={store}>
      <FortressApp {...props} />
    </Provider>
  );
};

export default Fortress;