@betterstart/cli 0.1.5 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.js CHANGED
@@ -8986,21 +8986,19 @@ export function ReorderControls({
8986
8986
  function cmsHeaderTemplate() {
8987
8987
  return `'use client'
8988
8988
 
8989
- import { Moon, Sun } from 'lucide-react'
8990
- import { useTheme } from '@cms/hooks/use-cms-theme'
8991
8989
  import { Button } from '@cms/components/ui/button'
8990
+ import { SidebarTrigger, useSidebar } from '@cms/components/ui/sidebar'
8991
+ import { useTheme } from '@cms/hooks/use-cms-theme'
8992
+ import { Moon, Sun } from 'lucide-react'
8992
8993
 
8993
8994
  export function CmsHeader() {
8994
8995
  const { theme, setTheme } = useTheme()
8996
+ const { state } = useSidebar()
8995
8997
 
8996
8998
  return (
8997
- <header className="flex h-14 shrink-0 items-center gap-2 border-b border-border justify-between w-full sticky top-0 z-50 bg-background">
8998
- <div className="flex items-center gap-3 px-5 w-full">
8999
- <span className="text-sm font-medium text-muted-foreground block md:hidden">
9000
- CMS
9001
- </span>
9002
- </div>
9003
- <div className="flex items-center px-5 gap-1">
8999
+ <header className="flex h-14 shrink-0 items-center gap-2 border-b border-border w-full sticky top-0 z-50 bg-sidebar">
9000
+ <div className="flex items-center px-5 gap-1 flex-1 w-full justify-between">
9001
+ {state === 'collapsed' && <SidebarTrigger />}
9004
9002
  <Button
9005
9003
  variant="ghost"
9006
9004
  size="icon"