Files
portkey-ai--gateway/cookbook/integrations/vercel/components/back-button.tsx
T
wehub-resource-sync 3cd11ababe
Check Markdown links / linkChecker (push) Waiting to run
chore: import upstream snapshot with attribution
2026-07-13 13:38:56 +08:00

10 lines
237 B
TypeScript
Vendored

'use client';
import { Link } from './link';
import { usePathname } from 'next/navigation';
export const BackButton = () => {
const pathname = usePathname();
if (pathname == '/') return null;
return <Link href="/">Back</Link>;
};