// hero.tsx import { getProjects } from "@/lib/cms"; const engineer = { name: "Harvey Charles Pioquinto", role: "AI-First Senior Software Engineer", since: 2016, stack: ["React", "Next.js", "TypeScript"], base: "PH / UTC+8", }; export default async function Hero() { const work = await getProjects({ featured: true }); return (
{work.map((p) => )}
); } function useTheme() { const [theme, setTheme] = useState<"light" | "dark">("light"); const toggle = () => setTheme((t) => (t === "light" ? "dark" : "light")); return { theme, toggle }; } type Status = "shipping" | "learning" | "both"; export const status: Status = "both";