a new start
This commit is contained in:
15
components/providers/command-provider.tsx
Normal file
15
components/providers/command-provider.tsx
Normal file
@@ -0,0 +1,15 @@
|
||||
'use client'
|
||||
|
||||
import * as React from 'react'
|
||||
import { CommandMenu } from '@/components/layout/command-menu'
|
||||
|
||||
export function CommandProvider({ children }: { children: React.ReactNode }) {
|
||||
const [open, setOpen] = React.useState(false)
|
||||
|
||||
return (
|
||||
<>
|
||||
{children}
|
||||
<CommandMenu open={open} setOpen={setOpen} />
|
||||
</>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user