@lobehub/ui
Version:
Lobe UI is an open-source UI component library for building AIGC web apps
1 lines • 1.35 kB
Source Map (JSON)
{"version":3,"file":"InstallBanner.mjs","names":[],"sources":["../../../src/awesome/InstallBanner/InstallBanner.tsx"],"sourcesContent":["'use client';\n\nimport { cx } from 'antd-style';\nimport { memo } from 'react';\n\nimport Snippet from '@/Snippet';\n\nimport { styles } from './style';\nimport type { InstallBannerProps } from './type';\n\nconst InstallBanner = memo<InstallBannerProps>(\n ({ className, command, footnote, prefix = '$', title, ...rest }) => (\n <section className={cx(styles.root, className)} {...rest}>\n <div className={styles.content}>\n {title && <h2 className={styles.title}>{title}</h2>}\n <Snippet className={styles.snippet} language={'bash'} prefix={prefix}>\n {command}\n </Snippet>\n {footnote && <p className={styles.footnote}>{footnote}</p>}\n </div>\n </section>\n ),\n);\n\nInstallBanner.displayName = 'InstallBanner';\n\nexport default InstallBanner;\n"],"mappings":";;;;;;;AAUA,MAAM,gBAAgB,MACnB,EAAE,WAAW,SAAS,UAAU,SAAS,KAAK,OAAO,GAAG,WACvD,oBAAC,WAAD;CAAS,WAAW,GAAG,OAAO,MAAM,SAAS;CAAG,GAAI;CAClD,UAAA,qBAAC,OAAD;EAAK,WAAW,OAAO;EAAvB,UAAA;GACG,SAAS,oBAAC,MAAD;IAAI,WAAW,OAAO;IAAQ,UAAA;GAAU,CAAA;GAClD,oBAAC,SAAD;IAAS,WAAW,OAAO;IAAS,UAAU;IAAgB;IAC3D,UAAA;GACM,CAAA;GACR,YAAY,oBAAC,KAAD;IAAG,WAAW,OAAO;IAAW,UAAA;GAAY,CAAA;EACtD;;AACE,CAAA,CAEb;AAEA,cAAc,cAAc"}