CommandHeader.tsx13 lines · main
| 1 | import type { PropsWithChildren } from 'react' |
| 2 | |
| 3 | import { useCommandMenuTouchGestures } from './hooks/viewHooks' |
| 4 | |
| 5 | export 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 | } |