// get projects const { ownerId, potId, potDetail, sybilRequirementMet } = props; const projects = Near.view(potId, "get_approved_applications", {}); if (!projects) return "Loading..."; const { public_round_start_ms, public_round_end_ms } = potDetail; const now = Date.now(); const publicRoundOpen = now >= public_round_start_ms && now < public_round_end_ms; return ( <Widget src={`${ownerId}/widget/Components.ListSection`} props={{ ...props, maxCols: 2, items: projects, renderItem: (project) => { return ( <Widget src={`${ownerId}/widget/Project.Card`} loading={ <div style={{ width: "320px", height: "500px", borderRadius: "12px", background: "white", boxShadow: "0px -2px 0px #464646 inset", border: "1px solid #292929", }} /> } props={{ ...props, potId, projectId: project.project_id, allowDonate: sybilRequirementMet && publicRoundOpen && project.project_id !== context.accountId, requireVerification: !sybilRequirementMet, }} /> ); }, }} /> );