2023-10-10 14:51:24 +00:00
|
|
|
import {
|
2023-10-12 17:30:45 +00:00
|
|
|
LumeDashboard,
|
2023-10-10 14:51:24 +00:00
|
|
|
LumeIdentity,
|
|
|
|
LumeIdentityTrigger,
|
|
|
|
useLume,
|
|
|
|
} 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-12 17:30:45 +00:00
|
|
|
{
|
2023-10-12 17:22:28 +00:00
|
|
|
<button
|
|
|
|
className="ml-2 w-full rounded-full bg-[hsl(113,49%,55%)] text-black"
|
|
|
|
disabled={!ready}
|
|
|
|
>
|
2023-10-10 14:51:24 +00:00
|
|
|
Login
|
|
|
|
</button>
|
2023-10-12 17:30:45 +00:00
|
|
|
}
|
2023-10-10 14:51:24 +00:00
|
|
|
</LumeIdentityTrigger>
|
|
|
|
</LumeIdentity>
|
2023-10-12 17:30:45 +00:00
|
|
|
{isLoggedIn && ready && <LumeDashboard />}
|
2023-10-09 18:46:41 +00:00
|
|
|
</>
|
|
|
|
);
|
|
|
|
}
|