'use client'; import { Portal, Content, Viewport } from '@radix-ui/react-select'; import { clsx } from 'clsx'; import { ComponentPropsWithRef, ReactNode } from 'react'; import { popoverContentRecipe } from '../popover'; import { ScrollArea } from '../scroll-area'; import { SelectProps } from './select'; import { selectContentRecipe, selectContentViewport, type SelectContentVariants, } from './select-content.css'; export type SelectContentProps = ComponentPropsWithRef & SelectContentVariants & { container?: SelectProps['container']; }; export interface SelectContentPortalProps { children: ReactNode; container?: SelectProps['container']; } const SelectContentPortal = ({ children, container, }: SelectContentPortalProps) => { if (container === false) { return children; } return {children}; }; export function SelectContent({ className, children, position = 'popper', container, tone, ...props }: SelectContentProps) { return (
{children}
); }