https://t.me/RX1948
Server : Apache
System : Linux s1230 5.15.0-139-generic #149~20.04.1 SMP Tue Jul 14 11:21:49 UTC 2026 x86_64
User : p141464 ( 418825)
PHP Version : 7.4.33.12
Disable Function : NONE
Directory :  /html/KMU-CSR-PLANER/wp-content/plugins/themeisle-companion/dashboard/src/components/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /html/KMU-CSR-PLANER/wp-content/plugins/themeisle-companion/dashboard/src/components/App.jsx
import { Box } from "@chakra-ui/react";
import { useState } from "@wordpress/element";
import "../style.scss";
import { getTabHash } from "../utils/common";
import Header from "./Header";
import { Provider as ChakraProvider } from "./ui/provider";
import { Toaster } from "./ui/toaster";

import AvailableModules from "./AvailableModules";
import RecommendedPlugins from "./RecommendedPlugins";

const App = () => {
  const hash = getTabHash();
  const [activeTab, setActiveTab] = useState(hash ? hash : "modules");

  return (
    <ChakraProvider>
      <Header activeTab={activeTab} setActiveTab={setActiveTab} />

      <Box pt="8" pb="16" bg="bg.muted" flexGrow={1}>
        {activeTab === "modules" && <AvailableModules />}
        {activeTab === "plugins" && <RecommendedPlugins />}
      </Box>

      <Toaster />
    </ChakraProvider>
  );
};

export default App;

https://t.me/RX1948 - 2025