Skip to content

NVR with realtime local object detection for IP cameras

289 B
Raw Blame
import { useEffect } from "react";
import { useNavigate } from "react-router-dom";

type RedirectProps = {
  to: string;
};
export function Redirect({ to }: RedirectProps) {
  const navigate = useNavigate();

  useEffect(() => {
    navigate(to);
  }, [to, navigate]);
  return <div />;
}