Summary: The Flipper `Button` component now uses Ant.design under the hood if available. This is detected using context Reviewed By: cekkaewnumchai Differential Revision: D23813166 fbshipit-source-id: 489a34d55c0b69d7b5bcd30f4275b89d0bb22c0d
17 lines
382 B
TypeScript
17 lines
382 B
TypeScript
/**
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*
|
|
* @format
|
|
*/
|
|
|
|
import {createContext, useContext} from 'react';
|
|
|
|
export const SandyContext = createContext(false);
|
|
|
|
export function useIsSandy(): boolean {
|
|
return useContext(SandyContext);
|
|
}
|