stargaze-studio/components/contracts/vendingMinter/ExecuteCombobox.hooks.ts
2022-12-09 11:27:50 +03:00

8 lines
302 B
TypeScript

import type { ExecuteListItem } from 'contracts/vendingMinter/messages/execute'
import { useState } from 'react'
export const useExecuteComboboxState = () => {
const [value, setValue] = useState<ExecuteListItem | null>(null)
return { value, onChange: (item: ExecuteListItem) => setValue(item) }
}