import { AuthenticatedLayout } from "./AuthenticatedLayout.tsx"; export const SessionsPage = ({ sessions, currentSessionId, isAdmin = false, }: { sessions: any[]; currentSessionId: string; isAdmin?: boolean; }) => { return (

Active Sessions

Review and revoke active sessions connected to your account.

{sessions.length === 0 ? ( ) : ( sessions.map((session) => { const isCurrent = session.id === currentSessionId; return ( ); }) )}
Status Created At Expires At Action
No active sessions found.
{isCurrent ? ( Current Session ) : Active} {new Date(session.created_at).toLocaleString()} {new Date(session.expires_at).toLocaleString()} {!isCurrent && ( )}
); };