CommandHeader.tsx13 lines · main
1import type { PropsWithChildren } from 'react'
2
3import { useCommandMenuTouchGestures } from './hooks/viewHooks'
4
5export function CommandHeader({ children }: PropsWithChildren) {
6 const { handleTouchStart, handleTouchMove, handleTouchEnd } = useCommandMenuTouchGestures()
7
8 return (
9 <div onTouchStart={handleTouchStart} onTouchMove={handleTouchMove} onTouchEnd={handleTouchEnd}>
10 {children}
11 </div>
12 )
13}