Files
supabase/packages/ui-patterns/src/CommandMenu/api/CommandHeader.tsx
Ivan Vasilov 181f15752c chore: Move the files in ui-patterns under src folder (#36032)
* Move all components in ui-patterns into src folder. Add exports field for all files.

* Fix all apps to use the new ui-patterns.

* Fix the design-system build.

* Remove all unused rexports from ui-patterns index. Apps should use direct imports instead.

* Change the tailwind content property to include src folder of ui-patterns.

* Remove autoprefixer from the tailwind configs.

* Remove autoprefixer as a dependency.

* Fix the CVA conditions in FormLayout.
2025-05-30 12:46:22 +03:00

14 lines
418 B
TypeScript

import type { PropsWithChildren } from 'react'
import { useCommandMenuTouchGestures } from './hooks/viewHooks'
export function CommandHeader({ children }: PropsWithChildren) {
const { handleTouchStart, handleTouchMove, handleTouchEnd } = useCommandMenuTouchGestures()
return (
<div onTouchStart={handleTouchStart} onTouchMove={handleTouchMove} onTouchEnd={handleTouchEnd}>
{children}
</div>
)
}