{"ast":null,"code":"import * as React from 'react';\nimport View from \"react-native-web/dist/exports/View\";\nimport StyleSheet from \"react-native-web/dist/exports/StyleSheet\";\nimport { useInternalTheme } from \"../../core/theming\";\nimport Icon from \"../Icon\";\nconst ICON_SIZE = 24;\nconst ListIcon = ({\n  icon,\n  color: iconColor,\n  style,\n  theme: themeOverrides\n}) => {\n  const theme = useInternalTheme(themeOverrides);\n  return React.createElement(View, {\n    style: [theme.isV3 ? styles.itemV3 : styles.item, style],\n    pointerEvents: \"box-none\"\n  }, React.createElement(Icon, {\n    source: icon,\n    size: ICON_SIZE,\n    color: iconColor,\n    theme: theme\n  }));\n};\nconst styles = StyleSheet.create({\n  item: {\n    margin: 8,\n    height: 40,\n    width: 40,\n    alignItems: 'center',\n    justifyContent: 'center'\n  },\n  itemV3: {\n    alignItems: 'center',\n    justifyContent: 'center'\n  }\n});\nListIcon.displayName = 'List.Icon';\nexport default ListIcon;","map":{"version":3,"names":["React","View","StyleSheet","useInternalTheme","Icon","ICON_SIZE","ListIcon","icon","color","iconColor","style","theme","themeOverrides","createElement","isV3","styles","itemV3","item","pointerEvents","source","size","create","margin","height","width","alignItems","justifyContent","displayName"],"sources":["/Users/pmouli/Documents/GitHub.nosync/boots-strapper/mobile/node_modules/react-native-paper/src/components/List/ListIcon.tsx"],"sourcesContent":["import * as React from 'react';\nimport { View, ViewStyle, StyleSheet, StyleProp } from 'react-native';\n\nimport { useInternalTheme } from '../../core/theming';\nimport type { ThemeProp } from '../../types';\nimport Icon, { IconSource } from '../Icon';\n\nexport type Props = {\n  /**\n   * Icon to show.\n   */\n  icon: IconSource;\n  /**\n   * Color for the icon.\n   */\n  color?: string;\n  style?: StyleProp<ViewStyle>;\n  /**\n   * @optional\n   */\n  theme?: ThemeProp;\n};\n\nconst ICON_SIZE = 24;\n\n/**\n * A component to show an icon in a list item.\n *\n * ## Usage\n * ```js\n * import * as React from 'react';\n * import { List, MD3Colors } from 'react-native-paper';\n *\n * const MyComponent = () => (\n *   <>\n *     <List.Icon color={MD3Colors.tertiary70} icon=\"folder\" />\n *     <List.Icon color={MD3Colors.tertiary70} icon=\"equal\" />\n *     <List.Icon color={MD3Colors.tertiary70} icon=\"calendar\" />\n *   </>\n * );\n *\n * export default MyComponent;\n * ```\n */\nconst ListIcon = ({\n  icon,\n  color: iconColor,\n  style,\n  theme: themeOverrides,\n}: Props) => {\n  const theme = useInternalTheme(themeOverrides);\n\n  return (\n    <View\n      style={[theme.isV3 ? styles.itemV3 : styles.item, style]}\n      pointerEvents=\"box-none\"\n    >\n      <Icon source={icon} size={ICON_SIZE} color={iconColor} theme={theme} />\n    </View>\n  );\n};\n\nconst styles = StyleSheet.create({\n  item: {\n    margin: 8,\n    height: 40,\n    width: 40,\n    alignItems: 'center',\n    justifyContent: 'center',\n  },\n  itemV3: {\n    alignItems: 'center',\n    justifyContent: 'center',\n  },\n});\n\nListIcon.displayName = 'List.Icon';\n\nexport default ListIcon;\n"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAAA,OAAAC,IAAA;AAAA,OAAAC,UAAA;AAG9B,SAASC,gBAAgB;AAEzB,OAAOC,IAAI;AAkBX,MAAMC,SAAS,GAAG,EAAE;AAqBpB,MAAMC,QAAQ,GAAGA,CAAC;EAChBC,IAAI;EACJC,KAAK,EAAEC,SAAS;EAChBC,KAAK;EACLC,KAAK,EAAEC;AACF,CAAC,KAAK;EACX,MAAMD,KAAK,GAAGR,gBAAgB,CAACS,cAAc,CAAC;EAE9C,OACEZ,KAAA,CAAAa,aAAA,CAACZ,IAAI;IACHS,KAAK,EAAE,CAACC,KAAK,CAACG,IAAI,GAAGC,MAAM,CAACC,MAAM,GAAGD,MAAM,CAACE,IAAI,EAAEP,KAAK,CAAE;IACzDQ,aAAa,EAAC;EAAU,GAExBlB,KAAA,CAAAa,aAAA,CAACT,IAAI;IAACe,MAAM,EAAEZ,IAAK;IAACa,IAAI,EAAEf,SAAU;IAACG,KAAK,EAAEC,SAAU;IAACE,KAAK,EAAEA;EAAM,CAAE,CAClE,CAAC;AAEX,CAAC;AAED,MAAMI,MAAM,GAAGb,UAAU,CAACmB,MAAM,CAAC;EAC/BJ,IAAI,EAAE;IACJK,MAAM,EAAE,CAAC;IACTC,MAAM,EAAE,EAAE;IACVC,KAAK,EAAE,EAAE;IACTC,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE;EAClB,CAAC;EACDV,MAAM,EAAE;IACNS,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE;EAClB;AACF,CAAC,CAAC;AAEFpB,QAAQ,CAACqB,WAAW,GAAG,WAAW;AAElC,eAAerB,QAAQ","ignoreList":[]},"metadata":{"hasCjsExports":false},"sourceType":"module","externalDependencies":[]}