stargaze-studio/components/contracts/cw721/base/ExecuteCombobox.hooks.ts
2022-07-13 16:56:36 +03:00

8 lines
296 B
TypeScript

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