import React from 'react'; import { useSearchParams, useNavigate } from 'react-router-dom'; import { GraphExplorer } from './GraphExplorer'; import { SearchBar } from '../../components/SearchBar'; import { AnimatedPage } from '../../components/ui/AnimatedPage'; const GraphPage: React.FC = () => { const [searchParams, setSearchParams] = useSearchParams(); const navigate = useNavigate(); const id = searchParams.get('id'); const type = searchParams.get('type'); const handleSelect = (item: any) => { if (item.id && item.type) { setSearchParams({ id: item.id.toString(), type: item.type }); } }; return (
{!id || !type ? (

EXPLORE CONNECTIONS

Search for an Anime, Character, Game, or Movie to start exploring the localized graph universe.

) : (
)}
); }; export default GraphPage;