HEX
Server: LiteSpeed
System: Linux premium212.web-hosting.com 4.18.0-553.124.4.lve.el8.x86_64 #1 SMP Fri May 15 13:02:13 UTC 2026 x86_64
User: vitanhod (1367)
PHP: 8.2.31
Disabled: NONE
Upload Files
File: /home/vitanhod/barnabites.es/wp-content/themes/rishi/inc/dashboard/pages/index.js
import { useCurrentTab } from "../components/Hooks";
import { applyFilters } from '@wordpress/hooks';
import General from "./general";
import StarterSettings from "./startersettings";
import { toast } from "sonner";

const PageComponent = () => {
	const currentPage = useCurrentTab();

	if ("addons" === currentPage) {
		return applyFilters('rishi_dashboard_pages', null);
	} else if ("extensions" === currentPage || "usefulplugin" === currentPage || 'license' === currentPage ) {
		return applyFilters('rishi_dashboard_components', currentPage, toast);
	} else {
		switch (currentPage) {
			case "general":
				return <General />
			case "starter_sites":
				return <StarterSettings />
			default:
				return <General />
		}
	}
}

export default PageComponent;