mirror of
https://github.com/eigent-ai/eigent.git
synced 2026-04-30 04:30:13 +00:00
Initial commit of eigent-main
This commit is contained in:
commit
723df5a03e
1144 changed files with 103478 additions and 0 deletions
23
package/@stackframe/react/dist/esm/components-page/sign-out.js
vendored
Normal file
23
package/@stackframe/react/dist/esm/components-page/sign-out.js
vendored
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
"use client";
|
||||
"use client";
|
||||
|
||||
// src/components-page/sign-out.tsx
|
||||
import { cacheFunction } from "@stackframe/stack-shared/dist/utils/caches";
|
||||
import React from "react";
|
||||
import { useUser } from "..";
|
||||
import { PredefinedMessageCard } from "../components/message-cards/predefined-message-card";
|
||||
import { jsx } from "react/jsx-runtime";
|
||||
var cacheSignOut = cacheFunction(async (user) => {
|
||||
return await user.signOut();
|
||||
});
|
||||
function SignOut(props) {
|
||||
const user = useUser();
|
||||
if (user) {
|
||||
React.use(cacheSignOut(user));
|
||||
}
|
||||
return /* @__PURE__ */ jsx(PredefinedMessageCard, { type: "signedOut", fullPage: props.fullPage });
|
||||
}
|
||||
export {
|
||||
SignOut
|
||||
};
|
||||
//# sourceMappingURL=sign-out.js.map
|
||||
Loading…
Add table
Add a link
Reference in a new issue