"use client"; import { Tab, Tabs } from "@heroui/react"; import { Responsive } from "react-grid-layout"; import { useEffect, useState } from "react"; import { useRouter } from "next/navigation"; import Paper from "./paper"; import { AnimationSwitch } from "./animation-swith"; import MiniPic from "./mini-pic"; import { cn } from "@/lib/utils"; import AvatarTransition from "@/components/avatar"; import { DockDemo } from "@/components/dock-demo"; import { ThemeSwitch } from "@/components/theme-switch"; import CardStack from "@/components/card-stack"; import AnimatedEmoji from "@/components/animated-emoji"; import IconCloud from "@/components/icon-cloud"; import MapComponent from "@/components/map"; import WebAgent from "@/components/webagent"; import Chatbot from "@/components/chatbot"; import { MiniModel } from "@/components/mini"; import Actions from "@/components/actions"; import { layouts, selectedCard } from "@/config/layout"; import { icons } from "@/config/icons"; import useWindowWidth from "@/hooks/useWindowWidth"; interface HomeProps { photos: string[]; avatarUrl: string; dogUrl: string; actionImageUrl: string; webagentUrl: string; chatbotUrl: string; paperUrl: string; } const Home = ({ photos, avatarUrl, dogUrl, actionImageUrl, webagentUrl, chatbotUrl, paperUrl, }: HomeProps) => { const { width } = useWindowWidth(); const [tabSelected, setTabSelected] = useState("all"); const [animated, setAnimated] = useState(false); const router = useRouter(); useEffect(() => { router.prefetch("/blog"); }, [router]); if (!width) { return null; } return (
{ if (selected === "blog") { router.push("/blog"); return; } setTabSelected(selected as string); }} >

Hey! I’m Eric, a software engineer, hailing from UCLA and Purdue. Currently, I’m building a cool marketing AI agent. My world revolves around web development, deep learning, and data science. And yes, I have an adorable dog named Bert!

{animated ? : }
); }; export default Home;