stargaze-studio/components/badges/actions/Combobox.hooks.ts
2023-02-19 13:59:37 +03:00

9 lines
269 B
TypeScript

import { useState } from 'react'
import type { ActionListItem } from './actions'
export const useActionsComboboxState = () => {
const [value, setValue] = useState<ActionListItem | null>(null)
return { value, onChange: (item: ActionListItem) => setValue(item) }
}