diff --git a/apps/web/src/components/landing/handlebars.tsx b/apps/web/src/components/landing/handlebars.tsx index 832a923..36705e9 100644 --- a/apps/web/src/components/landing/handlebars.tsx +++ b/apps/web/src/components/landing/handlebars.tsx @@ -1,4 +1,5 @@ "use client"; + import React, { useState, useRef, useEffect } from "react"; import { motion, useMotionValue, useTransform, PanInfo } from "motion/react"; @@ -9,12 +10,12 @@ interface HandlebarsProps { onRangeChange?: (left: number, right: number) => void; } -export const Handlebars = ({ +export function Handlebars({ children, minWidth = 50, maxWidth = 400, onRangeChange, -}: HandlebarsProps) => { +}: HandlebarsProps) { const [leftHandle, setLeftHandle] = useState(0); const [rightHandle, setRightHandle] = useState(maxWidth); const [contentWidth, setContentWidth] = useState(maxWidth); @@ -93,9 +94,9 @@ export const Handlebars = ({ className="relative -rotate-[2.76deg] max-w-[250px] md:max-w-[454px] mt-2" style={{ width: contentWidth }} > -
+
-
+
-
+