I was thinking I could do something like this:
export default () => {
return [
{
text: 'Full-time',
value: 'fulltime',
key: 'fulltime'
},
{
text: 'Part-time',
value: 'parttime',
key: 'parttime',
},
{
text: 'Freelance',
value: 'freelance',
key: 'freelance',
},
]
};
And then in my component I could get that data to use in a dropdown like this:
import { positionTypeOptions } from '../components/data/PositionTypes';
<Form.Select label=" " placeholder="Type" options={positionTypeOptions} width={3} />
However the data does not seem to be exported. The data in undefined. Any ideas how this could be done? I would like to return an array to be used in another component.