import React, { useState } from 'react' import type { SelectOption } from '@toptal/picasso' import { Select } from '@toptal/picasso' const Example = () => { const [value, setValue] = useState('') const handleChange = (event: React.ChangeEvent<{ value: string }>) => { console.log('Select value:', event.target.value) setValue(event.target.value) } const getDisplayValue = (option: SelectOption | null) => { if (!option) { return '' } const { text, value } = option return `You selected ${text} with value ${value}` } return (