mirror of
https://github.com/supabase/supabase.git
synced 2026-10-14 13:49:09 +03:00
* 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.
14 lines
418 B
TypeScript
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>
|
|
)
|
|
}
|