import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import { Avatar } from "antd-latest";
import { ContentImage } from "../../../Components/Image";
import { Link } from "react-router-dom";
import { VerifiedIcon } from "../../../Components/Icons/VerifiedIcon";
import { useVerified } from "../../../hooks/useVerified";
export const AviLinkLarge = ({ showVerified, wrapperClass, username, userObj }) => {
    const { verifiedUsers } = useVerified([username || ""]);
    const isUserVerified = verifiedUsers && username && verifiedUsers.includes(username);
    return (_jsxs("div", { className: wrapperClass || "", children: [_jsx(Link, { to: `/user/${username}`, children: _jsx(Avatar, { size: 100, src: _jsx(ContentImage, { ...userObj }) }) }), _jsxs("p", { className: "header-1r", children: [username, " "] }), showVerified && isUserVerified && _jsx(VerifiedIcon, {})] }));
};
export const AviLinkMedium = ({ showVerified, wrapperClass, username, userObj }) => {
    const { verifiedUsers } = useVerified([username || ""]);
    const isUserVerified = verifiedUsers && username && verifiedUsers.includes(username);
    return (_jsxs("div", { className: wrapperClass || "", children: [_jsx(Link, { to: `/user/${username}`, children: _jsx(Avatar, { size: 75, src: _jsx(ContentImage, { ...userObj }) }) }), _jsxs("p", { className: "u-dao-header-2r", children: [username, " "] }), showVerified && isUserVerified && _jsx(VerifiedIcon, {})] }));
};
export const AviLinkRegular = ({ showVerified, wrapperClass, username, userObj }) => {
    const { verifiedUsers } = useVerified([username || ""]);
    const isUserVerified = verifiedUsers && username && verifiedUsers.includes(username);
    return (_jsxs("div", { className: wrapperClass || "", children: [_jsx(Link, { to: `/user/${username}`, children: _jsx(Avatar, { size: 50, src: _jsx(ContentImage, { ...userObj }) }) }), _jsxs("p", { className: "header-3", children: [username, " "] }), showVerified && isUserVerified && _jsx(VerifiedIcon, {})] }));
};
export const AviLinkVariable = ({ showVerified, wrapperClass, aviSize, username, userObj }) => {
    const { verifiedUsers } = useVerified([username || ""]);
    const isUserVerified = verifiedUsers && username && verifiedUsers.includes(username);
    return (_jsxs("div", { className: wrapperClass || "", children: [_jsx(Link, { to: `/user/${username}`, children: _jsx(Avatar, { size: aviSize, src: _jsx(ContentImage, { ...userObj }) }) }), _jsxs("p", { className: "header-3", children: [username, " "] }), showVerified && isUserVerified && _jsx(VerifiedIcon, {})] }));
};
//# sourceMappingURL=AviLink.js.map