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