{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "account-sessions-01", "type": "registry:block", "description": "Active sessions and devices management", "registryDependencies": [ "button", "card" ], "files": [ { "path": "creative-tim-ui/blocks/account-sessions-01/page.tsx", "content": "\"use client\"\n\nimport {\n Clock,\n Computer,\n Globe,\n ShieldCheck,\n Smartphone,\n X,\n} from \"lucide-react\"\n\nimport { Badge } from \"@/components/ui/badge\"\nimport { Button } from \"@/components/ui/button\"\nimport { Card } from \"@/components/ui/card\"\n\nconst ACTIVE_SESSIONS = [\n {\n id: 1,\n type: \"Laptop\",\n icon: Computer,\n location: \"New York, USA\",\n coordinates: \"40.7128° N, 74.0060° W\",\n isCurrent: true,\n lastActive: \"2 hours ago\",\n browser: \"Chrome 114.0\",\n os: \"macOS 13.4\",\n },\n {\n id: 2,\n type: \"Smartphone\",\n icon: Smartphone,\n location: \"Florida, USA\",\n coordinates: \"27.9944° N, 81.7603° W\",\n isCurrent: false,\n lastActive: \"Yesterday at 3:45 PM\",\n browser: \"Safari 16.5\",\n os: \"iOS 16.5\",\n },\n {\n id: 3,\n type: \"Desktop\",\n icon: Computer,\n location: \"Tokyo, Japan\",\n coordinates: \"35.6895° N, 139.6917° E\",\n isCurrent: false,\n lastActive: \"3 days ago\",\n browser: \"Firefox 112.0\",\n os: \"Windows 11\",\n },\n]\n\nexport default function AccountSessions01() {\n return (\n
\n \n
\n
\n
\n \n
\n
\n

\n Active Sessions\n

\n

\n Manage and monitor devices that have access to your account\n

\n
\n
\n
\n\n
\n {ACTIVE_SESSIONS.map((session, index) => {\n const Icon = session.icon\n const isLast = index === ACTIVE_SESSIONS.length - 1\n\n return (\n \n
\n \n \n
\n\n
\n
\n

{session.type} Session

\n {session.isCurrent && (\n \n Current Session\n \n )}\n
\n\n
\n
\n \n {session.location}\n
\n
\n \n Last active: {session.lastActive}\n
\n
\n {session.browser} on {session.os}\n
\n
\n
\n
\n\n
\n {!session.isCurrent && (\n \n )}\n
\n
\n )\n })}\n \n\n
\n
\n \n
\n

Security Tip

\n

\n If you notice any suspicious activity, immediately remove the\n session and change your account password. Enable two-factor\n authentication for additional security.\n

\n
\n
\n
\n \n \n )\n}\n", "type": "registry:page", "target": "app/account-sessions/page.tsx" } ], "meta": { "iframeHeight": "800px", "container": "w-full bg-surface min-h-svh flex px-4 py-12 items-center md:py-20 justify-center min-w-0", "mobile": "component" }, "categories": [ "account" ] }