continue-custom/docs-site/app/components/ClientRedirect.tsx
Nate ab84469997 style: fix prettier formatting
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-20 14:04:06 -07:00

15 lines
352 B
TypeScript

"use client";
import { useEffect } from "react";
export function ClientRedirect({ to }: { to: string }) {
useEffect(() => {
window.location.replace(to);
}, [to]);
return (
<div className="flex min-h-[60vh] items-center justify-center">
<p className="text-sm text-black/40 dark:text-white/40">Redirecting...</p>
</div>
);
}