forked from rajun/ar-test
12 lines
310 B
TypeScript
12 lines
310 B
TypeScript
import { redirect } from 'react-router';
|
|
import type { Route } from './+types/preview.$id';
|
|
import { ROUTES } from '~/data/routes';
|
|
|
|
export function clientLoader({ params }: Route.ClientLoaderArgs) {
|
|
return redirect(ROUTES.asset(params.id));
|
|
}
|
|
|
|
export default function LegacyPreview() {
|
|
return null;
|
|
}
|