// Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 import { HTMLInputTypeAttribute, InputHTMLAttributes } from 'react'; import * as S from './Input.styled'; interface IProps extends InputHTMLAttributes { type: HTMLInputTypeAttribute | 'select'; children?: React.ReactNode; label: string; } const Input = ({ type, id = '', children, label, ...props }: IProps) => { return ( {label} {type === 'select' ? ( <> {children} ) : ( )} ); }; export default Input;