2022-12-09 08:27:50 +00:00
|
|
|
import type { ExecuteListItem } from 'contracts/baseMinter/messages/execute'
|
2022-07-19 07:53:03 +00:00
|
|
|
import { useState } from 'react'
|
|
|
|
|
|
|
|
export const useExecuteComboboxState = () => {
|
|
|
|
const [value, setValue] = useState<ExecuteListItem | null>(null)
|
|
|
|
return { value, onChange: (item: ExecuteListItem) => setValue(item) }
|
|
|
|
}
|