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