stargaze-studio/components/contracts/badgeHub/ExecuteCombobox.hooks.ts
2023-02-02 16:39:00 +03:00

8 lines
297 B
TypeScript

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) }
}