diff --git a/client/src/components/ui/Slider.tsx b/client/src/components/ui/Slider.tsx index 7a1f326c37..fefef62519 100644 --- a/client/src/components/ui/Slider.tsx +++ b/client/src/components/ui/Slider.tsx @@ -1,12 +1,9 @@ -'use client'; - import * as React from 'react'; import * as SliderPrimitive from '@radix-ui/react-slider'; import { useDoubleClick } from '@zattoo/use-double-click'; +import type { clickEvent } from '@zattoo/use-double-click'; import { cn } from '../../utils'; -type clickEvent = (event: React.MouseEvent) => void; - interface SliderProps extends React.ComponentPropsWithoutRef { doubleClickHandler?: clickEvent; } @@ -23,7 +20,7 @@ const Slider = React.forwardRef, S { return; })