refactoring node 24
This commit is contained in:
16
src/components/AdminAccessMessage.js
Normal file
16
src/components/AdminAccessMessage.js
Normal file
@@ -0,0 +1,16 @@
|
||||
import { Link } from 'react-router-dom';
|
||||
|
||||
const AdminAccessMessage = () => (
|
||||
<div className="p-6 max-w-lg mx-auto bg-white shadow rounded-lg mt-8 text-center">
|
||||
<h1 className="text-2xl font-semibold text-gray-800 mb-2">Kein Zugriff</h1>
|
||||
<p className="text-gray-600 mb-4">Dieser Bereich ist nur für Administratoren verfügbar.</p>
|
||||
<Link
|
||||
to="/"
|
||||
className="inline-flex items-center justify-center px-4 py-2 bg-blue-600 text-white rounded-md hover:bg-blue-700 transition-colors"
|
||||
>
|
||||
Zurück zur Konfiguration
|
||||
</Link>
|
||||
</div>
|
||||
);
|
||||
|
||||
export default AdminAccessMessage;
|
||||
Reference in New Issue
Block a user