impressum datenschutz added
This commit is contained in:
@@ -4,7 +4,7 @@ import { useAuth } from '../../context/AuthContext';
|
||||
import { gdprApi } from '../../services/api';
|
||||
import Sidebar from './Sidebar';
|
||||
import ScrollToTopButton from '../ScrollToTopButton';
|
||||
import { AlertTriangle, ArrowRight } from 'lucide-react';
|
||||
import { AlertTriangle, ArrowRight, Building, Shield } from 'lucide-react';
|
||||
|
||||
function ConsentBanner() {
|
||||
const { user, isCustomerPortal } = useAuth();
|
||||
@@ -41,6 +41,27 @@ function ConsentBanner() {
|
||||
);
|
||||
}
|
||||
|
||||
function PortalFooter() {
|
||||
const { isCustomerPortal } = useAuth();
|
||||
if (!isCustomerPortal) return null;
|
||||
|
||||
return (
|
||||
<footer className="border-t bg-gray-50 px-8 py-4">
|
||||
<div className="flex items-center justify-center gap-6 text-sm text-gray-500">
|
||||
<Link to="/imprint" className="flex items-center gap-1 hover:text-blue-600 transition-colors">
|
||||
<Building className="w-3 h-3" />
|
||||
Impressum
|
||||
</Link>
|
||||
<span className="text-gray-300">|</span>
|
||||
<Link to="/website-privacy" className="flex items-center gap-1 hover:text-blue-600 transition-colors">
|
||||
<Shield className="w-3 h-3" />
|
||||
Datenschutzerklärung
|
||||
</Link>
|
||||
</div>
|
||||
</footer>
|
||||
);
|
||||
}
|
||||
|
||||
export default function Layout() {
|
||||
return (
|
||||
<div className="flex min-h-screen">
|
||||
@@ -50,6 +71,7 @@ export default function Layout() {
|
||||
<main className="flex-1 p-8">
|
||||
<Outlet />
|
||||
</main>
|
||||
<PortalFooter />
|
||||
</div>
|
||||
<ScrollToTopButton />
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user