import React, { Component } from "react"; import "../../scss/components/buttons/RadioButtonComponent.scss"; interface IPropsRadioButtonComponent { isChecked: boolean; text?: string; handleToggle?: () => void; } export default class RadioButtonComponent extends Component { props: IPropsRadioButtonComponent = { isChecked: false }; static defaultProps: Partial = { handleToggle: (): void => {} }; constructor(props: IPropsRadioButtonComponent) { super(props); } render(): JSX.Element { const input = ( ); return (
{this.props.text}
{input}
); } }