'use client'; import React from 'react'; import { QaheraSize } from './types'; export interface SelectOption { value: string; label: string; disabled?: boolean; } export interface SelectProps extends Omit, 'size'> { size?: QaheraSize; error?: boolean | string; options?: SelectOption[]; } export const Select: React.FC = ({ size = 'md', error = false, options, children, className = '', disabled, ...props }) => { const hasError = Boolean(error); const classes = [ 'qhr-select', `qhr-select--${size}`, hasError ? 'is-invalid' : '', disabled ? 'is-disabled' : '', className, ].filter(Boolean).join(' '); return (
); };