2023-05-06 15:49:37 +08:00
|
|
|
import * as React from 'react';
|
2022-05-07 14:31:54 +08:00
|
|
|
import type { RadioGroupContextProps, RadioOptionTypeContextProps } from './interface';
|
2020-02-26 16:09:22 +08:00
|
|
|
|
|
|
|
const RadioGroupContext = React.createContext<RadioGroupContextProps | null>(null);
|
|
|
|
|
|
|
|
export const RadioGroupContextProvider = RadioGroupContext.Provider;
|
|
|
|
|
|
|
|
export default RadioGroupContext;
|
2022-04-08 15:23:52 +08:00
|
|
|
|
|
|
|
export const RadioOptionTypeContext = React.createContext<RadioOptionTypeContextProps | null>(null);
|
|
|
|
export const RadioOptionTypeContextProvider = RadioOptionTypeContext.Provider;
|