{"version":3,"file":"LayoutToc.mjs","names":[],"sources":["../../../src/Layout/components/LayoutToc.tsx"],"sourcesContent":["'use client';\n\nimport { cx } from 'antd-style';\nimport { memo } from 'react';\n\nimport { styles } from '../style';\nimport type { LayoutTocProps } from '../type';\n\nexport const LayoutToc = memo<LayoutTocProps>(\n  ({ tocWidth, style, className, children, ...rest }) => {\n    return (\n      <nav\n        className={cx(styles.toc, className)}\n        style={tocWidth ? { width: tocWidth, ...style } : style}\n        {...rest}\n      >\n        {children}\n      </nav>\n    );\n  },\n);\n\nLayoutToc.displayName = 'LayoutToc';\n\nexport default LayoutToc;\n"],"mappings":";;;;;;AAQA,MAAa,YAAY,MACtB,EAAE,UAAU,OAAO,WAAW,UAAU,GAAG,WAAW;AACrD,QACE,oBAAC,OAAD;EACE,WAAW,GAAG,OAAO,KAAK,UAAU;EACpC,OAAO,WAAW;GAAE,OAAO;GAAU,GAAG;GAAO,GAAG;EAClD,GAAI;EAEH;EACG,CAAA;EAGX;AAED,UAAU,cAAc"}