mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 04:40:32 +00:00
23 lines
477 B
JavaScript
23 lines
477 B
JavaScript
import React from 'react';
|
|
import {
|
|
ListSelect,
|
|
} from 'components';
|
|
|
|
export default function SalutationList({
|
|
...restProps
|
|
}) {
|
|
const saluations = ['Mr.', 'Mrs.', 'Ms.', 'Miss', 'Dr.'];
|
|
const items = saluations.map((saluation) => ({ key: saluation, label: saluation }));
|
|
|
|
return (
|
|
<ListSelect
|
|
items={items}
|
|
selectedItemProp={'key'}
|
|
textProp={'label'}
|
|
defaultText={'Salutation'}
|
|
filterable={false}
|
|
{...restProps}
|
|
/>
|
|
);
|
|
}
|