mirror of
https://github.com/ant-design/ant-design.git
synced 2026-02-09 02:49:18 +08:00
16 lines
518 B
TypeScript
16 lines
518 B
TypeScript
import * as React from 'react';
|
|
|
|
import type { RadioGroupContextProps, RadioOptionTypeContextProps } from './interface';
|
|
|
|
const RadioGroupContext = React.createContext<RadioGroupContextProps | undefined>(undefined);
|
|
|
|
export const RadioGroupContextProvider = RadioGroupContext.Provider;
|
|
|
|
export default RadioGroupContext;
|
|
|
|
export const RadioOptionTypeContext = React.createContext<RadioOptionTypeContextProps | undefined>(
|
|
undefined,
|
|
);
|
|
|
|
export const RadioOptionTypeContextProvider = RadioOptionTypeContext.Provider;
|