import React from "react"; import styled from "styled-components"; const Container = styled.div` font-family: system-ui; `; interface Props extends React.InputHTMLAttributes { label: string; onValueChange?: (name: string, value: string) => void; } const Radio: React.FC = (props) => { const onChange = (e: React.ChangeEvent) => { if (props.onValueChange) { props.onValueChange(e.target.name, e.target.value); } }; const pp = { ...props }; delete pp.onValueChange; return ( ); }; export default Radio;