mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 04:40:32 +00:00
23 lines
428 B
TypeScript
23 lines
428 B
TypeScript
// @ts-nocheck
|
|
import React from 'react';
|
|
|
|
import { MenuItem, Button } from '@blueprintjs/core';
|
|
import { FSelect } from '../Forms';
|
|
|
|
/**
|
|
* Branch select field.
|
|
* @param {*} param0
|
|
* @returns {JSX.Element}
|
|
*/
|
|
export function BranchSelect({ branches, ...rest }) {
|
|
return (
|
|
<FSelect
|
|
valueAccessor={'id'}
|
|
textAccessor={'name'}
|
|
labelAccessor={'code'}
|
|
{...rest}
|
|
items={branches}
|
|
/>
|
|
);
|
|
}
|