import { jsx } from "react/jsx-runtime";
import { Fragment } from "react";
import { isFn } from "@tachybase/schema";
import { getStrength } from "./utils.mjs";
const PasswordStrength = (props)=>{
    if (isFn(props.children)) return props.children(getStrength(String(props.value || '')));
    return /*#__PURE__*/ jsx(Fragment, {
        children: props.children
    });
};
export { PasswordStrength };
