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