<gh_stars>1-10
{"ast":null,"code":"var _jsxFileName = \"/Users/Famille/Code-lab/vidly/src/components/common/listGroup.jsx\";\nimport React from \"react\";\n\nvar ListGroup = function ListGroup(props) {\n  var items = props.items,\n      currentItem = props.currentItem,\n      onItemSelect = props.onItemSelect;\n  return React.createElement(\"div\", {\n    __source: {\n      fileName: _jsxFileName,\n      lineNumber: 6\n    },\n    __self: this\n  }, React.createElement(\"ul\", {\n    className: \"list-group\",\n    __source: {\n      fileName: _jsxFileName,\n      lineNumber: 7\n    },\n    __self: this\n  }, items.map(function (i) {\n    return React.createElement(\"li\", {\n      key: i._id,\n      onClick: function onClick() {\n        return onItemSelect(i);\n      },\n      className: items.indexOf(i) === currentItem ? \"list-group-item active\" : \"list-group-item\",\n      __source: {\n        fileName: _jsxFileName,\n        lineNumber: 9\n      },\n      __self: this\n    }, i.name);\n  })));\n};\n\nexport default ListGroup;","map":{"version":3,"sources":["/Users/Famille/Code-lab/vidly/src/components/common/listGroup.jsx"],"names":["React","ListGroup","props","items","currentItem","onItemSelect","map","i","_id","indexOf","name"],"mappings":";AAAA,OAAOA,KAAP,MAAkB,OAAlB;;AAEA,IAAMC,SAAS,GAAG,SAAZA,SAAY,CAAAC,KAAK,EAAI;AAAA,MACjBC,KADiB,GACoBD,KADpB,CACjBC,KADiB;AAAA,MACVC,WADU,GACoBF,KADpB,CACVE,WADU;AAAA,MACGC,YADH,GACoBH,KADpB,CACGG,YADH;AAEzB,SACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KACE;AAAI,IAAA,SAAS,EAAC,YAAd;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KACGF,KAAK,CAACG,GAAN,CAAU,UAAAC,CAAC;AAAA,WACV;AACE,MAAA,GAAG,EAAEA,CAAC,CAACC,GADT;AAEE,MAAA,OAAO,EAAE;AAAA,eAAMH,YAAY,CAACE,CAAD,CAAlB;AAAA,OAFX;AAGE,MAAA,SAAS,EACPJ,KAAK,CAACM,OAAN,CAAcF,CAAd,MAAqBH,WAArB,GACI,wBADJ,GAEI,iBANR;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,OAQGG,CAAC,CAACG,IARL,CADU;AAAA,GAAX,CADH,CADF,CADF;AAkBD,CApBD;;AAsBA,eAAeT,SAAf","sourcesContent":["import React from \"react\";\n\nconst ListGroup = props => {\n  const { items, currentItem, onItemSelect } = props;\n  return (\n    <div>\n      <ul className=\"list-group\">\n        {items.map(i => (\n          <li\n            key={i._id}\n            onClick={() => onItemSelect(i)}\n            className={\n              items.indexOf(i) === currentItem\n                ? \"list-group-item active\"\n                : \"list-group-item\"\n            }>\n            {i.name}\n          </li>\n        ))}\n      </ul>\n    </div>\n  );\n};\n\nexport default ListGroup;\n"]},"metadata":{},"sourceType":"module"}