9 lines
269 B
TypeScript
9 lines
269 B
TypeScript
import { useState } from 'react'
|
|
|
|
import type { ActionListItem } from './actions'
|
|
|
|
export const useActionsComboboxState = () => {
|
|
const [value, setValue] = useState<ActionListItem | null>(null)
|
|
return { value, onChange: (item: ActionListItem) => setValue(item) }
|
|
}
|