mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-23 23:18:36 +08:00
8 lines
162 B
TypeScript
8 lines
162 B
TypeScript
|
import React from 'react';
|
||
|
|
||
|
export const DarkContext = React.createContext(false);
|
||
|
|
||
|
export default function useDark() {
|
||
|
return React.useContext(DarkContext);
|
||
|
}
|