import { redirect } from '@tanstack/react-router';

export const Redirect = ({ to }: { to: string }) => {
  throw redirect({ to });
};
