mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-30 22:39:34 +08:00
4e9ac02b08
* docs: update home page * docs: home support dark mode * docs: fix mobile * docs: fix rtl * docs: update locale
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);
|
|
}
|