@coko/client
Version:
Client side common code for coko apps
45 lines (44 loc) • 1.37 kB
JavaScript
import e from "../common/Spin.js";
import t from "../common/Result.js";
import n from "../common/Button.js";
import r from "../common/Page.js";
import "../common/index.js";
import "react";
import i from "styled-components";
import { jsx as a, jsxs as o } from "react/jsx-runtime";
//#region src/ui/authentication/VerifyCheck.tsx
var s = i.div``, c = i.div``, l = (i) => {
let { className: l, resend: u, resending: d = !1, resent: f = !1 } = i;
return /* @__PURE__ */ a(r, {
maxWidth: 600,
children: /* @__PURE__ */ o(s, {
className: l,
children: [
!(d || f) && /* @__PURE__ */ a(t, {
extra: /* @__PURE__ */ a(c, { children: /* @__PURE__ */ a(n, {
onClick: u,
type: "primary",
children: "Send me a new verification email"
}) }),
status: "warning",
subTitle: "It appears you haven't verified your email address yet. Please check your inbox for an email containing instructions. ",
title: "Email not verified"
}),
d && /* @__PURE__ */ a(t, {
icon: /* @__PURE__ */ a(e, {
size: 18,
spinning: !0
}),
title: "Sending verification email..."
}),
f && /* @__PURE__ */ a(t, {
status: "success",
subTitle: "Check your email for further instructions",
title: "New verification email has been sent!"
})
]
})
});
};
//#endregion
export { l as default };