You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
587 B
23 lines
587 B
3 years ago
|
import React from "react";
|
||
|
|
||
|
const CustomSelectBox = ({ options }) => {
|
||
|
return (
|
||
|
<select className="customizeSelect rounded text-xs mx-1 py-2 bg-[#F9F9F9] focus:bg-white border-[#E0E0E0] focus:border-[#2483E1] focus:ring-transparent">
|
||
|
{options.map((option, index) => (
|
||
|
<option key={index}>{option.title}</option>
|
||
|
))}
|
||
|
</select>
|
||
|
);
|
||
|
};
|
||
|
|
||
|
export default CustomSelectBox;
|
||
|
|
||
|
CustomSelectBox.defaultProps = {
|
||
|
options: [
|
||
|
{ title: "میزان تحصیلات" },
|
||
|
{ title: "کارشناسی" },
|
||
|
{ title: "ارشد" },
|
||
|
{ title: "دکتری" },
|
||
|
],
|
||
|
};
|