mirror of
https://github.com/yldio/copilot.git
synced 2024-11-14 23:30:05 +02:00
29 lines
562 B
JavaScript
29 lines
562 B
JavaScript
|
const actions = require('./actions');
|
||
|
const React = require('react');
|
||
|
const axios = require('axios');
|
||
|
const users = require('../../users');
|
||
|
|
||
|
const ReactSelectize = require("react-selectize");
|
||
|
const SimpleSelect = ReactSelectize.SimpleSelect;
|
||
|
|
||
|
|
||
|
|
||
|
const Search = () => {
|
||
|
|
||
|
let _options = ["apple", "mango", "grapes", "melon", "strawberry"];
|
||
|
_options = _options.map(function(fruit){
|
||
|
return {label: fruit, value: fruit}
|
||
|
});
|
||
|
|
||
|
return (
|
||
|
<SimpleSelect
|
||
|
options={_options}
|
||
|
placeholder="Select a fruit"
|
||
|
theme="material"
|
||
|
/>
|
||
|
);
|
||
|
}
|
||
|
|
||
|
module.exports = Search;
|
||
|
|