I need to create a const component to render a select with its options, but I can't render option fields because the code returns a select with no one options. Where's the problem?

Thank you in advice.

```js
import React from "react";

const FilterSelect = (props) => {
    const {title, name, selectedValue, optionsValue, onChange} = {...props};

    const renderOptions = (optionsValue) => {
        optionsValue.map((optionValue, i) =>
            <option value={optionValue.value} key={i}>{optionValue.name}</option>
        );
    };

    return (
        <div className="filters-content-block">
            <h3 className="filters-subtitle">{title}</h3>
            <select className="sl sl-fullwidth" onChange={onChange} required>
                {renderOptions}
            </select>
        </div>
    );
};

export default FilterSelect;

```