stargaze-studio/components/collections/actions/Combobox.hooks.ts
Arda Nakışçı 708da8a58a
Add collection actions page (#3)
* Add collection actions page

* Add collections index page and update sidebar
2022-07-25 11:29:52 +03:00

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