"use client";
import { useCallback, useEffect, useRef, useState } from "react";
const EMAIL = "me@objsee.org";
export function Bio({ delay = "rv-2" }: { delay?: string }) {
return (
low-level C developer. kernel and *nix internals.
);
}
export function Links({ delay = "rv-3" }: { delay?: string }) {
const [copied, setCopied] = useState(false);
const t = useRef | null>(null);
const onCopy = useCallback(async (e: React.MouseEvent) => {
e.preventDefault();
try {
await navigator.clipboard.writeText(EMAIL);
setCopied(true);
if (t.current) clearTimeout(t.current);
t.current = setTimeout(() => setCopied(false), 1600);
} catch {
window.location.href = `mailto:${EMAIL}`;
}
}, []);
useEffect(() => () => { if (t.current) clearTimeout(t.current); }, []);
return (
);
}