'use client' import * as SelectPrimitive from '@radix-ui/react-select' import clsx from 'clsx' import { type ComponentPropsWithoutRef, type ElementRef, forwardRef, } from 'react' import { Check, ChevronDown, ChevronUp } from '../..' import styles from './Select.module.css' export const Select = SelectPrimitive.Root export const SelectGroup = SelectPrimitive.Group export const SelectValue = SelectPrimitive.Value export const SelectTrigger = forwardRef< ElementRef, ComponentPropsWithoutRef >(({ className, children, ...props }, ref) => ( {children} )) SelectTrigger.displayName = SelectPrimitive.Trigger.displayName export const SelectScrollUpButton = forwardRef< ElementRef, ComponentPropsWithoutRef >(({ className, ...props }, ref) => ( )) SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName export const SelectScrollDownButton = forwardRef< ElementRef, ComponentPropsWithoutRef >(({ className, ...props }, ref) => ( )) SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName export const SelectContent = forwardRef< ElementRef, ComponentPropsWithoutRef >(({ className, children, position = 'popper', ...props }, ref) => ( {children} )) SelectContent.displayName = SelectPrimitive.Content.displayName export const SelectLabel = forwardRef< ElementRef, ComponentPropsWithoutRef >(({ className, ...props }, ref) => ( )) SelectLabel.displayName = SelectPrimitive.Label.displayName export const SelectItem = forwardRef< ElementRef, ComponentPropsWithoutRef >(({ className, children, ...props }, ref) => ( {children} )) SelectItem.displayName = SelectPrimitive.Item.displayName export const SelectSeparator = forwardRef< ElementRef, ComponentPropsWithoutRef >(({ className, ...props }, ref) => ( )) SelectSeparator.displayName = SelectPrimitive.Separator.displayName