UNPKG

1.28 kBSource Map (JSON)View Raw
1{"version":3,"file":"ContextMenuItem.js","sources":["../src/components/ContextMenu/ContextMenuItem.js"],"sourcesContent":["import React from 'react'\nimport { textStyle } from '../../style'\nimport { useTheme } from '../../theme'\nimport { unselectable } from '../../utils'\nimport ButtonBase from '../ButtonBase/ButtonBase'\n\nconst ContextMenuItem = React.memo(function ContextMenuItem(props) {\n const theme = useTheme()\n return (\n <ButtonBase\n css={`\n display: flex;\n align-items: center;\n padding: 5px 16px 5px 10px;\n cursor: pointer;\n white-space: nowrap;\n width: 100%;\n ${textStyle('body2')}\n ${unselectable()};\n &:active {\n background: ${theme.surfacePressed};\n }\n `}\n {...props}\n />\n )\n})\n\nexport default ContextMenuItem\n"],"names":["ContextMenuItem","React","memo","props","theme","useTheme","textStyle","unselectable","surfacePressed"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,IAAMA,eAAe,GAAGC,cAAK,CAACC,IAAN,CAAW,SAASF,eAAT,CAAyBG,KAAzB,EAAgC;AACjE,MAAMC,KAAK,GAAGC,cAAQ,EAAtB;AACA,sBACEJ,wEAcME,KAdN;AAAA,UAQMG,oBAAS,CAAC,OAAD,CARf;AAAA,WASMC,gBAAY,EATlB;AAAA,WAWoBH,KAAK,CAACI;AAX1B,KADF;AAkBD,CApBuB,CAAxB;;;;"}
\No newline at end of file