{"ast":null,"code":"import{FaTimes}from'react-icons/fa';import{jsx as _jsx}from\"react/jsx-runtime\";import{jsxs as _jsxs}from\"react/jsx-runtime\";var Task=function Task(_ref){var task=_ref.task,onDelete=_ref.onDelete,onToggle=_ref.onToggle;return/*#__PURE__*/_jsxs(\"div\",{className:\"task \".concat(task.reminder?'reminder':'',\" \"),onDoubleClick:function onDoubleClick(){return onToggle(task.id);},children:[/*#__PURE__*/_jsxs(\"h3\",{children:[task.text,/*#__PURE__*/_jsx(FaTimes,{style:{color:'red',cursor:'pointer'},onClick:function onClick(){return onDelete(task.id);}})]}),/*#__PURE__*/_jsx(\"p\",{children:task.day})]});};export default Task;","map":{"version":3,"sources":["/Users/zhangyuan/Desktop/react-task-tracker/src/components/Task.js"],"names":["FaTimes","Task","task","onDelete","onToggle","reminder","id","text","color","cursor","day"],"mappings":"AAAA,OAASA,OAAT,KAAwB,gBAAxB,C,wFAEA,GAAMC,CAAAA,IAAI,CAAG,QAAPA,CAAAA,IAAO,MAAkC,IAA/BC,CAAAA,IAA+B,MAA/BA,IAA+B,CAAzBC,QAAyB,MAAzBA,QAAyB,CAAfC,QAAe,MAAfA,QAAe,CAC3C,mBACI,aAAK,SAAS,gBAAUF,IAAI,CAACG,QAAL,CAAgB,UAAhB,CAA6B,EAAvC,KAAd,CAA4D,aAAa,CAAE,+BAAMD,CAAAA,QAAQ,CAACF,IAAI,CAACI,EAAN,CAAd,EAA3E,wBACI,sBACKJ,IAAI,CAACK,IADV,cAEI,KAAC,OAAD,EAAS,KAAK,CAAE,CAAEC,KAAK,CAAE,KAAT,CAAgBC,MAAM,CAAE,SAAxB,CAAhB,CAAqD,OAAO,CAAE,yBAAMN,CAAAA,QAAQ,CAACD,IAAI,CAACI,EAAN,CAAd,EAA9D,EAFJ,GADJ,cAKI,mBAAIJ,IAAI,CAACQ,GAAT,EALJ,GADJ,CASH,CAVD,CAYA,cAAeT,CAAAA,IAAf","sourcesContent":["import { FaTimes } from 'react-icons/fa'\n\nconst Task = ({ task, onDelete, onToggle }) => {\n    return (\n        <div className={`task ${task.reminder ? 'reminder' : ''} `} onDoubleClick={() => onToggle(task.id)}>\n            <h3>\n                {task.text} \n                <FaTimes style={{ color: 'red', cursor: 'pointer' }} onClick={() => onDelete(task.id)}/>\n            </h3>\n            <p>{task.day}</p>\n        </div>\n    )\n}\n\nexport default Task\n"]},"metadata":{},"sourceType":"module"}