{"version":3,"file":"sidebar-header.cjs","sources":["../../../components/sidebar/sidebar-header.tsx"],"sourcesContent":["'use client';\n\nimport { cx } from 'class-variance-authority';\nimport { ComponentProps } from 'react';\nimport { Flex } from '../flex';\nimport styles from './sidebar.module.css';\n\n/**\n * Free-form slot at the top of the sidebar — an avatar, a workspace switcher,\n * a search box, whatever the header needs to hold. Because its content is\n * arbitrary, it isn't hidden automatically when the sidebar collapses; add\n * `data-collapse-hidden` to any child that should disappear on collapse\n * (e.g. a title next to a leading icon).\n */\nexport function SidebarHeader({\n  className,\n  ...props\n}: ComponentProps<typeof Flex>) {\n  return (\n    <Flex\n      align='center'\n      className={cx(styles.header, className)}\n      data-slot='sidebar-header'\n      {...props}\n    />\n  );\n}\n\nSidebarHeader.displayName = 'Sidebar.Header';\n"],"names":[],"mappings":";;;;;;;;AAOA;;;;;;AAMG;AACG;;AAYN;AAEA;;"}