import { cookies } from 'next/headers';

export default async function TestPage() {
  const cookieStore = await cookies();
  const authToken = cookieStore.get('auth-token');
  
  return (
    <div className="min-h-screen bg-gray-900 text-white p-8">
      <h1 className="text-2xl mb-4">Cookie Test Page</h1>
      <div className="bg-gray-800 p-4 rounded">
        <p className="mb-2">Auth Token Cookie:</p>
        {authToken ? (
          <div>
            <p className="text-green-400">✓ Cookie found!</p>
            <p className="text-xs font-mono mt-2">{authToken.value.substring(0, 100)}...</p>
          </div>
        ) : (
          <p className="text-red-400">✗ No cookie found</p>
        )}
      </div>
    </div>
  );
}
