stargaze-studio/components/contracts/royaltyRegistry/ExecuteCombobox.hooks.ts
2023-10-07 11:01:56 +03:00

8 lines
304 B
TypeScript

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