import { InputHTMLAttributes, useContext } from "react"; import { Context } from "../../contexts/Context"; import styles from "./Input.module.scss"; interface InputProps extends InputHTMLAttributes { name?: string; color?: string; backgroundColor?: string; } export default function Input({ name, color, backgroundColor, ...rest }: InputProps) { const { inputValue } = useContext(Context); return (
{ event.target.value; }} disabled autoComplete="off" value={inputValue} {...rest} />
); }