import React from 'react'
import { InputText } from "primereact/inputtext";
export default function ProductSreach({field,searchProduct,label}) {
  return (
    <span className="p-float-label">
    <InputText
        id={field.name}
        {...field}
        onKeyUp={searchProduct}
            className={" w-[100%] h-11 border border-zinc-950"}
        
    />
    <label htmlFor={field.name}>
        {label}
    </label>
</span>
  )
}
