Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

418 B
Raw Blame
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>
  )
}