Massive/color.ts

12 lines
224 B
TypeScript
Raw Normal View History

2022-10-31 04:22:08 +00:00
import React, {useContext} from 'react'
export const Color = React.createContext({
color: '',
setColor: (_value: string) => {},
2022-10-31 04:22:08 +00:00
})
export const useColor = () => {
2022-10-31 04:22:08 +00:00
const context = useContext(Color)
return context
}