{"version":3,"file":"components/Status/failed.mjs","sources":["../../../src/components/Status/failed.tsx"],"sourcesContent":["import { Common } from '@rsdoctor/types';\nimport { Button, Empty, Space, Typography } from 'antd';\nimport React from 'react';\n\ninterface FailedStatusProps {\n  title?: string;\n  buttonText?: string;\n  retry: Common.Function;\n}\n\nconst defaultTitle = 'Load data failed, please try again';\nconst defaultButtonText = 'retry';\n\nconst FailedStatusComponent: React.FC<FailedStatusProps> = ({\n  title = defaultTitle,\n  buttonText = defaultButtonText,\n  retry,\n}) => {\n  return (\n    <Empty\n      description={\n        <Space direction=\"vertical\">\n          <Typography.Text>{title}</Typography.Text>\n          <Button\n            type=\"primary\"\n            onClick={() => {\n              retry();\n            }}\n          >\n            {buttonText}\n          </Button>\n        </Space>\n      }\n    />\n  );\n};\n\nexport const FailedStatus = React.memo(FailedStatusComponent);\n"],"names":["defaultTitle","defaultButtonText","FailedStatusComponent","title","buttonText","retry","Empty","Space","Typography","Button","FailedStatus","React"],"mappings":";;;AAUA,MAAMA,eAAe;AACrB,MAAMC,oBAAoB;AAE1B,MAAMC,wBAAqD,CAAC,EAC1DC,QAAQH,YAAY,EACpBI,aAAaH,iBAAiB,EAC9BI,KAAK,EACN,GACQ,WAAP,GACE,IAACC,OAAKA;QACJ,2BACE,KAACC,OAAKA;YAAC,WAAU;;8BACf,IAACC,WAAW,IAAI;8BAAEL;;8BAClB,IAACM,QAAMA;oBACL,MAAK;oBACL,SAAS;wBACPJ;oBACF;8BAECD;;;;;AAQN,MAAMM,eAAe,WAAHA,GAAGC,MAAAA,IAAU,CAACT"}