import React from "react";
import { openMasterDashboard } from "../../config/satPortal.js";

export default function AccessDeniedPage() {
  return (
    <div className="ptw-loading">
      <h2>Access denied</h2>
      <p className="ptw-muted">This PTW admin dashboard is available only to admin users.</p>
      <button type="button" className="swi-btn" onClick={() => openMasterDashboard()}>
        Go to Master Dashboard
      </button>
    </div>
  );
}
