40 lines
1.1 KiB
TypeScript
40 lines
1.1 KiB
TypeScript
// Module ID: 13921
|
|
// Function ID: 13922
|
|
// Name: useUsernameStatus
|
|
// Dependencies: [32, 19, 13922, 2]
|
|
// Exports: useUsernameStatus
|
|
|
|
// Module 13921 (useUsernameStatus)
|
|
import _slicedToArray from "_slicedToArray";
|
|
import noop from "noop";
|
|
|
|
const require = arg1;
|
|
const result = require("useUsernameLiveCheck").fileFinishedImporting("modules/unique_usernames/useUsernameStatus.tsx");
|
|
|
|
export const useUsernameStatus = (arg0, flag, flag2) => {
|
|
const _require = arg0;
|
|
if (flag === undefined) {
|
|
flag = true;
|
|
}
|
|
if (flag2 === undefined) {
|
|
flag2 = false;
|
|
}
|
|
const dependencyMap = tmp;
|
|
let usernameLiveCheck;
|
|
let React;
|
|
usernameLiveCheck = _require(13922).useUsernameLiveCheck(arg0, flag, flag2);
|
|
const tmp3 = usernameLiveCheck(React.useState(undefined), 2);
|
|
React = tmp3[1];
|
|
const items = [usernameLiveCheck, arg0, arg3];
|
|
const effect = React.useEffect(() => {
|
|
if ("" !== closure_0) {
|
|
if (tmp !== closure_1) {
|
|
if (null != usernameLiveCheck) {
|
|
callback(tmp3);
|
|
}
|
|
}
|
|
}
|
|
callback(undefined);
|
|
}, items);
|
|
return tmp3[0];
|
|
};
|