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

export default function KbArticleEditAliasPage() {
  const navigate = useNavigate();
  const params = useParams();
  onMount(() => navigate('/admin/kb', { replace: true }));
  return (
    <AdminShell>
      <div class="card">
        <p class="notice">Redirecting article edit <strong>{params.id}</strong> to knowledge base module...</p>
        <div class="actions"><A class="btn" href="/admin/kb">Open Knowledge Base</A></div>
      </div>
    </AdminShell>
  );
}
