'use client'; import * as React from 'react'; import * as Badge from '@/components/ui/badge'; import * as Checkbox from '@/components/ui/checkbox'; import * as Divider from '@/components/ui/divider'; import * as Label from '@/components/ui/label'; import * as LinkButton from '@/components/ui/link-button'; import * as Slider from '@/components/ui/slider'; import * as Tooltip from '@/components/ui/tooltip'; export default function VehicleFilterSlider() { const [value, setValue] = React.useState([300, 450]); const [isOpen, setIsOpen] = React.useState(false); React.useEffect(() => { setIsOpen(true); }, []); const formatCurrency = (val: number) => { return new Intl.NumberFormat('en-US', { style: 'currency', currency: 'USD', minimumFractionDigits: 0, maximumFractionDigits: 0, }).format(val); }; return (
{/* Brand Section */}
Brand See All
Audi NEW
BMW
Chrysler
Dodge Challenger
{/* Price Range Section */}
Price Range { setValue(val); }} > {formatCurrency(value[0] ?? 0)} {formatCurrency(value[1] ?? 0)}
{/* Insurance Section */}
No Insurance
No Insurance
Included
); }