// Path: src/app/admin/(dashboard)/dashboard/security/page.tsx
// Every admin's own security page: where they're signed in, recent sign-ins,
// and "sign out other sessions". No permission needed — it only ever shows
// the viewer's own sessions.
import type { Metadata } from 'next';
import SessionsPanel from '@/components/admin/security/SessionsPanel';

export const metadata: Metadata = {
  title: 'Security & Sessions',
};

export default function SecurityPage() {
  return (
    <div className="p-4 md:p-6 max-w-4xl mx-auto flex flex-col gap-6">
      <div>
        <h1 className="text-xl font-bold" style={{ color: 'var(--color-text)' }}>Security &amp; Sessions</h1>
        <p className="text-sm mt-1" style={{ color: 'var(--color-text-secondary)' }}>
          Where your admin account is signed in, and your sign-ins from the last 30 days. You get an email whenever
          your account is used from a new browser or your password changes.
        </p>
      </div>
      <SessionsPanel />
    </div>
  );
}
