import { onMount } from 'solid-js';
import { useNavigate, useParams } from '@solidjs/router';

export default function WorkspaceMenuAliasPage() {
  const navigate = useNavigate();
  const params = useParams();
  onMount(() => navigate('/admin', { replace: true }));
  return (
      <div class="rounded-xl border border-gray-200 bg-white shadow-sm">
        <p class="notice">Redirecting workspace menu <strong>{params.menuId}</strong> to dashboard...</p>
      </div>
  );
}
