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

export default function CreateRoleUiConfigRedirectPage() {
  const navigate = useNavigate();

  onMount(() => {
    navigate('/admin/external-dashboard-management?mode=create', { replace: true });
  });

  return (
      <section class="rounded-xl border border-gray-200 bg-white shadow-sm">
        <p class="notice">Redirecting to External Dashboard Management...</p>
      </section>
  );
}
