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

export default function WorkspaceMenuAliasPage() {
  const navigate = useNavigate();
  const params = useParams();
  onMount(() => navigate('/admin', { replace: true }));
  return (
    <AdminShell>
      <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>
    </AdminShell>
  );
}
