import type { SelectHTMLAttributes } from 'react'
import React, { forwardRef } from 'react'
import { Icon } from '../..'
export interface SelectProps extends SelectHTMLAttributes {
/**
* ID to find this component in testing tools (e.g.: cypress, testing library, and jest).
*/
testId?: string
/**
* Assigns an identifier to link the UISelect component and its label.
*/
id: string
/**
* Defines the options available in the select. The SelectOptions object
* keys are the property names, while the values correspond to the text that
* will be displayed in the UI.
*/
options: Record
}
const Select = forwardRef(function Select(
{ options, id, testId = 'fs-select', ...otherProps }: SelectProps,
ref
) {
return (