2023-10-10 14:51:24 +00:00
|
|
|
import {
|
|
|
|
LumeIdentity,
|
|
|
|
LumeIdentityTrigger,
|
|
|
|
LumeDashboardTrigger,
|
|
|
|
LumeDashboard,
|
|
|
|
useLume,
|
|
|
|
LumeProvider,
|
|
|
|
} from "@lumeweb/sdk";
|
2023-10-11 14:27:12 +00:00
|
|
|
|
|
|
|
export default function () {
|
2023-10-11 13:46:46 +00:00
|
|
|
const { isLoggedIn, ready } = useLume();
|
2023-10-09 18:46:41 +00:00
|
|
|
return (
|
|
|
|
<>
|
2023-10-10 14:51:24 +00:00
|
|
|
<LumeIdentity>
|
2023-10-11 13:46:46 +00:00
|
|
|
<LumeIdentityTrigger asChild disabled={!ready}>
|
2023-10-10 14:57:17 +00:00
|
|
|
{isLoggedIn ? (
|
2023-10-10 14:51:24 +00:00
|
|
|
<LumeDashboard>
|
|
|
|
<LumeDashboardTrigger asChild>
|
|
|
|
<button className="ml-2 w-full rounded-full bg-[hsl(113,49%,55%)] text-black">
|
|
|
|
Check Status
|
|
|
|
</button>
|
|
|
|
</LumeDashboardTrigger>
|
|
|
|
</LumeDashboard>
|
|
|
|
) : (
|
|
|
|
<button className="ml-2 w-full rounded-full bg-[hsl(113,49%,55%)] text-black">
|
|
|
|
Login
|
|
|
|
</button>
|
|
|
|
)}
|
|
|
|
</LumeIdentityTrigger>
|
|
|
|
</LumeIdentity>
|
2023-10-09 18:46:41 +00:00
|
|
|
</>
|
|
|
|
);
|
|
|
|
}
|