{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "use-authenticated-account",
  "type": "registry:hook",
  "title": "Use Authenticated Lens Account",
  "description": "A hook to get the currently authenticated Lens account using the Lens React SDK.",
  "dependencies": ["@lens-protocol/react@0.0.0-canary-20250820102520"],
  "files": [
    {
      "path": "registry/new-york/hooks/use-authenticated-lens-account.ts",
      "content": "import { useAccount, useAuthenticatedUser } from \"@lens-protocol/react\";\n\nexport const useAuthenticatedLensAccount = () => {\n  const { data: authenticatedUser, loading: authenticatedUserLoading } = useAuthenticatedUser();\n\n  const {\n    data: account,\n    loading: accountLoading,\n    error: accountError,\n  } = useAccount({\n    address: authenticatedUser?.address,\n  });\n\n  return {\n    loading: authenticatedUserLoading || accountLoading,\n    data: account,\n    error: accountError,\n  };\n};\n",
      "type": "registry:hook"
    }
  ]
}
