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-12 17:50:02 +00:00
|
|
|
const { isLoggedIn, ready, inited } = useLume();
|
|
|
|
|
2023-10-09 18:46:41 +00:00
|
|
|
return (
|
|
|
|
<>
|
2023-10-12 17:56:18 +00:00
|
|
|
{!isLoggedIn && (
|
|
|
|
<LumeIdentity>
|
|
|
|
<LumeIdentityTrigger asChild disabled={!inited}>
|
|
|
|
{
|
|
|
|
<button
|
|
|
|
className="ml-2 w-full rounded-full bg-[hsl(113,49%,55%)] text-black disabled:pointer-events-none disabled:opacity-50"
|
|
|
|
disabled={!inited}
|
|
|
|
>
|
|
|
|
Login
|
|
|
|
</button>
|
|
|
|
}
|
|
|
|
</LumeIdentityTrigger>
|
|
|
|
</LumeIdentity>
|
|
|
|
)}
|
2023-10-12 17:30:45 +00:00
|
|
|
{isLoggedIn && ready && <LumeDashboard />}
|
2023-10-09 18:46:41 +00:00
|
|
|
</>
|
|
|
|
);
|
|
|
|
}
|