/*! For license information please see components-Results-Results-stories.d034fb3c.iframe.bundle.js.LICENSE.txt */
"use strict";(self.webpackChunkfibonacci_fold=self.webpackChunkfibonacci_fold||[]).push([[571],{"./src/components/Results/Results.stories.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Default:()=>Default,__namedExportsOrder:()=>__namedExportsOrder,default:()=>Results_stories});__webpack_require__("./node_modules/react/index.js");const Results_module_results="Results_results__nJhmZ";var jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js");const Results=_ref=>{let{votes}=_ref;const voteCounts=Object.values(votes).reduce(((acc,vote)=>(acc[vote]=(acc[vote]||0)+1,acc)),{});return(0,jsx_runtime.jsxs)("div",{className:Results_module_results,children:[(0,jsx_runtime.jsx)("h2",{children:"Voting Results"}),(0,jsx_runtime.jsx)("ul",{children:Object.keys(voteCounts).map(((vote,index)=>(0,jsx_runtime.jsxs)("li",{children:[vote,": ",voteCounts[vote]," vote(s)"]},index)))})]})},Results_Results=Results;Results.__docgenInfo={description:"",methods:[],displayName:"Results"};const Results_stories={title:"Components/Results",component:Results_Results},mockVotes={user1:5,user2:8,user3:5},Default=()=>(0,jsx_runtime.jsx)(Results_Results,{votes:mockVotes}),__namedExportsOrder=["Default"];Default.parameters={...Default.parameters,docs:{...Default.parameters?.docs,source:{originalSource:"() => <Results votes={mockVotes} />",...Default.parameters?.docs?.source}}}},"./node_modules/react/cjs/react-jsx-runtime.production.min.js":(__unused_webpack_module,exports,__webpack_require__)=>{var f=__webpack_require__("./node_modules/react/index.js"),k=Symbol.for("react.element"),l=Symbol.for("react.fragment"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};function q(c,a,g){var b,d={},e=null,h=null;for(b in void 0!==g&&(e=""+g),void 0!==a.key&&(e=""+a.key),void 0!==a.ref&&(h=a.ref),a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps)void 0===d[b]&&(d[b]=a[b]);return{$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}exports.Fragment=l,exports.jsx=q,exports.jsxs=q},"./node_modules/react/jsx-runtime.js":(module,__unused_webpack_exports,__webpack_require__)=>{module.exports=__webpack_require__("./node_modules/react/cjs/react-jsx-runtime.production.min.js")}}]);