import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import { ModalCtrl } from "../../../ModalCtrl";
import { Row } from "antd";
import { useAppState } from "../../../../../../overmind";
import { useCachedDaoProposal } from "../../../../../../hooks/useCached";
export const ViewProposalRow = (props) => {
    const state = useAppState();
    const currUser = state.api.auth.user?.username || "";
    const daoOwner = props.daoOwner;
    const proposalId = props.proposal.id;
    const proposal_type = "standart";
    const proposal = useCachedDaoProposal({
        daoOwner,
        proposalId: props?.proposal?.id,
    });
    return (_jsxs(Row, { className: props.wrapperClass || "view-proposal-row-wrapper", align: "middle", children: [_jsx("p", { className: "view-proposal-row-title-p", children: proposal.title }), _jsx(ModalCtrl, { proposal: proposal, daoOwner: daoOwner, proposal_type: proposal_type, currUser: currUser, proposalId: proposalId })] }));
};
//# sourceMappingURL=ViewProposalRow.js.map