stargaze-studio/components/contracts/badgeHub/ExecuteCombobox.hooks.ts

8 lines
297 B
TypeScript
Raw Normal View History

2023-02-02 13:39:00 +00:00
import type { ExecuteListItem } from 'contracts/badgeHub/messages/execute'
import { useState } from 'react'
export const useExecuteComboboxState = () => {
const [value, setValue] = useState<ExecuteListItem | null>(null)
return { value, onChange: (item: ExecuteListItem) => setValue(item) }
}