---
// DEPRECATED: Protected route component - now handled server-side
// This component no longer performs authentication checks.
// All authentication is handled by the unified auth system at the server level.

export interface Props {
  title?: string;
  requireAdmin?: boolean;
}

const { title = "Protected Page", requireAdmin = false } = Astro.props;
---

<!-- Simple wrapper - auth is handled server-side by unified auth system -->
<div class="auth-wrapper">
  <slot />
</div>

<script>
  // Note: Authentication is now handled server-side by the unified auth system.
  // This component is kept for backwards compatibility but no longer performs auth checks.
  console.log('[PROTECTED] ProtectedRoute mounted - auth handled server-side');
</script>