Files
bigcapital/packages/webapp/src/components/Branches/BranchSelect.tsx
Ahmed Bouhuolia 872fc661ce bugs bashing
2025-12-28 12:01:24 +02:00

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}
/>
);
}