import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import { AviLinkLarge } from "../../../AviLink";
import { ModalCtrl } from "../../../ModalCtrl";
import { Row } from "antd";
import { useAppState } from "../../../../../../overmind";
import { useCachedDaoWhitelistProposal, useCachedUser } from "../../../../../../hooks/useCached";
export const ViewWhitelistProposalPageRow = (props) => {
    const state = useAppState();
    const currUser = state.api.auth.user?.username || "";
    const daoOwner = props.daoOwner || state.config.settings.newcoin.daoDomain;
    const proposalId = props.proposal.id;
    const proposal = useCachedDaoWhitelistProposal({
        daoOwner,
        proposalId: props?.proposal?.id,
    });
    const newMember = useCachedUser({ username: proposal.user });
    const proposal_type = "whitelist";
    return (_jsxs(Row, { justify: "space-between", children: [_jsx(AviLinkLarge, { showVerified: true, wrapperClass: "avi", username: newMember.username, userObj: newMember }), _jsx(Row, { align: "top", className: "u-margin-bottom-30", children: _jsx(ModalCtrl, { proposal: proposal, daoOwner: daoOwner, proposal_type: proposal_type, currUser: currUser, proposalId: proposalId }) })] }));
};
//# sourceMappingURL=ViewWhitelistProposalPageRow.js.map