import * as React from 'react' ; import { Tag } from "polar-shared/src/tags/Tags" ; import { ValueAutocompleteOption } from "../../../web/js/mui/autocomplete/MUICreatableAutocomplete" ; export namespace MUITagInputControls { export function toAutocompleteOption ( tag ) { return { id : tag . id , label : tag . label , value : { id : tag . id , label : tag . label , } } ; } export function createOption ( input ) { input = input . trim ( ) ; return { id : input , label : input , value : { id : input , label : input , } } ; } }