@lobehub/ui
Version:
Lobe UI is an open-source UI component library for building AIGC web apps
1 lines • 962 B
Source Map (JSON)
{"version":3,"file":"LayoutHeader.mjs","names":[],"sources":["../../../src/Layout/components/LayoutHeader.tsx"],"sourcesContent":["'use client';\n\nimport { cx } from 'antd-style';\nimport { memo } from 'react';\n\nimport { styles } from '../style';\nimport type { LayoutHeaderProps } from '../type';\n\nexport const LayoutHeader = memo<LayoutHeaderProps>(\n ({ headerHeight, children, className, style, ...rest }) => {\n return (\n <header\n className={cx(styles.header, className)}\n style={{\n height: headerHeight,\n ...style,\n }}\n {...rest}\n >\n {children}\n </header>\n );\n },\n);\n\nLayoutHeader.displayName = 'LayoutHeader';\n\nexport default LayoutHeader;\n"],"mappings":";;;;;;AAQA,MAAa,eAAe,MACzB,EAAE,cAAc,UAAU,WAAW,OAAO,GAAG,WAAW;CACzD,OACE,oBAAC,UAAD;EACE,WAAW,GAAG,OAAO,QAAQ,SAAS;EACtC,OAAO;GACL,QAAQ;GACR,GAAG;EACL;EACA,GAAI;EAEH;CACK,CAAA;AAEZ,CACF;AAEA,aAAa,cAAc"}