/*! For license information please see f97e90c355a4ac0e7c8adaf0d0cd2639.js.LICENSE.txt */
"use strict";(wx["webpackJsonp"]=wx["webpackJsonp"]||[]).push([["sub-common/f97e90c355a4ac0e7c8adaf0d0cd2639"],{"./src/components/cell/index.tsx":function(e,s,c){var n=c("./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js");var a=c("./node_modules/classnames/index.js");var l=c.n(a);var t=c("./node_modules/react/cjs/react.production.min.js");var o=c("./src/components/iconfont/iconfont.tsx");var r=c("./src/components/cell/index.module.scss");var i=c("./node_modules/react/cjs/react-jsx-runtime.production.min.js");var u=function Cell(e){var s=e.title,c=e.desc,a=e.isLink,u=a===void 0?false:a,d=e.customClassName,m=e.customStyle,f=e.onClick,x=e.iconName,j=e.customDescClassName;var v=(0,t.useRef)(f);v.current=f;var p=(0,t.useCallback)((function(){var e;return u&&((e=v.current)===null||e===void 0?void 0:e.call(v))}),[u]);var h=(0,t.useMemo)((function(){return(0,i.jsxs)(n.View,{className:l()(r["default"].cell,d),style:m,onClick:p,children:[(0,i.jsxs)(n.View,{className:r["default"].title,children:[x&&(0,i.jsx)(o["default"],{name:x,size:46}),(0,i.jsx)(n.View,{children:s})]}),(0,i.jsxs)(n.View,{className:r["default"].desc,children:[(0,i.jsx)(n.View,{className:l()(r["default"].descText,j),children:c}),u&&(0,i.jsx)(o["default"],{name:"icon-chakanquanbukehu",size:46,color:"inherit"})]})]})}),[s,c,p,m]);return(0,i.jsx)(i.Fragment,{children:h})};s["default"]=u}}]);