@lobehub/ui
Version:
Lobe UI is an open-source UI component library for building AIGC web apps
1 lines • 979 B
Source Map (JSON)
{"version":3,"file":"Section.mjs","names":["Section: FC<SectionProps>","Footnotes"],"sources":["../../../src/mdx/mdxComponents/Section.tsx"],"sourcesContent":["'use client';\n\nimport type { FC, ReactNode } from 'react';\n\nimport Footnotes from '@/Markdown/components/Footnotes';\n\ninterface SectionProps {\n 'children': ReactNode;\n 'data-footnotes'?: boolean;\n 'showFootnotes'?: boolean;\n}\n\nconst Section: FC<SectionProps> = ({ children, showFootnotes, ...rest }) => {\n // 说明是脚注\n if (rest['data-footnotes']) {\n if (!showFootnotes) return null;\n return <Footnotes {...rest}>{children}</Footnotes>;\n }\n\n return <section {...rest}>{children}</section>;\n};\n\nSection.displayName = 'MdxSection';\n\nexport default Section;\n"],"mappings":";;;;;;AAYA,MAAMA,WAA6B,EAAE,UAAU,eAAe,GAAG,WAAW;AAE1E,KAAI,KAAK,mBAAmB;AAC1B,MAAI,CAAC,cAAe,QAAO;AAC3B,SAAO,oBAACC;GAAU,GAAI;GAAO;IAAqB;;AAGpD,QAAO,oBAAC;EAAQ,GAAI;EAAO;GAAmB;;AAGhD,QAAQ,cAAc;AAEtB,sBAAe"}