import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
import { useCachedMood } from "../../../hooks/useCached";
import TopFolders from "../../../Components/TopFolders";
export const ProposalFolder = ({ proposal }) => {
    const maybeProposalFolderId = (proposal.url?.match(/newlife.io\/folder\/([^\/]+)$/) || [])[1];
    const maybeProposalFolder = useCachedMood({ id: maybeProposalFolderId });
    return maybeProposalFolderId && maybeProposalFolder ? (_jsx(TopFolders, { userMoods: [maybeProposalFolder], maxItems: 5, maxPostsToShow: 5, title: "", enableScrollForMoreMoods: false, randomizeMoods: false })) : (_jsx(_Fragment, {}));
};
//# sourceMappingURL=ProposalFolder.js.map