{"ast":null,"code":"var _this = this,\n    _jsxFileName = \"/Users/rohitsingh/Documents/projects/new-nativebase-setup/NativeBase/example/storybook/stories/components/composites/Toast/CustomComponentWithCustomId.tsx\";\n\nimport React from 'react';\nimport { Button, useToast, Box } from \"/Users/rohitsingh/Documents/projects/new-nativebase-setup/NativeBase/src/index\";\nexport var Example = function Example() {\n  var toast = useToast();\n  var id = 'test-toast';\n  return React.createElement(Button, {\n    onPress: function onPress() {\n      if (!toast.isActive(id)) {\n        toast.show({\n          id: id,\n          render: function render() {\n            return React.createElement(Box, {\n              bg: \"teal.500\",\n              p: 2,\n              rounded: \"md\",\n              mb: 5\n            }, \"Hi, Nice to see you\");\n          }\n        });\n      }\n    }\n  }, \"Custom Toast\");\n};","map":{"version":3,"sources":["/Users/rohitsingh/Documents/projects/new-nativebase-setup/NativeBase/example/storybook/stories/components/composites/Toast/CustomComponentWithCustomId.tsx"],"names":["React","Button","useToast","Box","Example","toast","id","isActive","show","render"],"mappings":";;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,MAAT,EAAiBC,QAAjB,EAA2BC,GAA3B;AAEA,OAAO,IAAMC,OAAO,GAAG,SAAVA,OAAU,GAAM;AAC3B,MAAMC,KAAK,GAAGH,QAAQ,EAAtB;AACA,MAAMI,EAAE,GAAG,YAAX;AAEA,SACE,oBAAC,MAAD;AACE,IAAA,OAAO,EAAE,mBAAM;AACb,UAAI,CAACD,KAAK,CAACE,QAAN,CAAeD,EAAf,CAAL,EAAyB;AACvBD,QAAAA,KAAK,CAACG,IAAN,CAAW;AACTF,UAAAA,EAAE,EAAFA,EADS;AAETG,UAAAA,MAAM,EAAE,kBAAM;AACZ,mBACE,oBAAC,GAAD;AAAK,cAAA,EAAE,EAAC,UAAR;AAAmB,cAAA,CAAC,EAAE,CAAtB;AAAyB,cAAA,OAAO,EAAC,IAAjC;AAAsC,cAAA,EAAE,EAAE;AAA1C,qCADF;AAKD;AARQ,SAAX;AAUD;AACF;AAdH,oBADF;AAoBD,CAxBM","sourcesContent":["import React from 'react';\nimport { Button, useToast, Box } from 'native-base';\n\nexport const Example = () => {\n  const toast = useToast();\n  const id = 'test-toast';\n\n  return (\n    <Button\n      onPress={() => {\n        if (!toast.isActive(id)) {\n          toast.show({\n            id,\n            render: () => {\n              return (\n                <Box bg=\"teal.500\" p={2} rounded=\"md\" mb={5}>\n                  Hi, Nice to see you\n                </Box>\n              );\n            },\n          });\n        }\n      }}\n    >\n      Custom Toast\n    </Button>\n  );\n};\n"]},"metadata":{},"sourceType":"module"}