import { ComponentProps, SVGProps, useContext } from 'react'; import styled from 'styled-components'; import { Svg } from '../../components'; import { getVariantKey } from '../../variants'; import { RadioContext } from './radio.context'; import { IRadioVariants, radioVariants } from './radio.variants'; export type RadioIconProps = SVGProps & { variant?: keyof typeof radioVariants | (string & {}); variants?: IRadioVariants; }; const StyledChecked = styled(Svg) ` ${props => getVariantKey('checked', props.variant, props.variants)} `; const StyledUnchecked = styled(Svg) ` ${props => getVariantKey('unchecked', props.variant, props.variants)} `; function RadioChecked({ className, ...props }: ComponentProps) { return ( ); } function RadioUnchecked({ className, ...props }: ComponentProps) { return ( ); } export function RadioIcon({ variant = 'default', variants, ...props }: ComponentProps) { const context = useContext(RadioContext); return ( <> ); }