import { BRAND_OPTIONS } from '../constants' ; import { SelectOption } from '../types/interfaces' ; export function getLabelByBrand ( brandValue ) { const brand = BRAND_OPTIONS . find ( ( brand ) => brand . value === brandValue ) ; if ( brand ) { return brand . label ; } }