modelGather.ts 271 Bytes
Newer Older
DarkForst's avatar
DarkForst committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14
import {useState, useCallback} from 'react'

export default () =>{
  const [commandType, setCommandType] = useState<any[]>([])

  const setCommandItemType = useCallback((mes) => {
    setCommandType(mes)
  }, [])

  return {
    commandType,
    setCommandItemType
  }
}