{/* Header */}
Search Mechanism
{isFormSubmit ? 'Form' : isUrlPattern ? 'URL Pattern' : mechanism.method}
{/* Form Submit Method */}
{isFormSubmit && mechanism.formSelector && (
Form:
{mechanism.formSelector}
{mechanism.inputSelector && (
Input:
{mechanism.inputSelector}
)}
{mechanism.submitSelector && (
Submit:
{mechanism.submitSelector}
)}
)}
{/* URL Pattern Method */}
{isUrlPattern && mechanism.urlPattern && (
URL Pattern:
{mechanism.urlPattern}
{mechanism.paramName && (
Param Name:
{mechanism.paramName}
)}
)}
{/* Fallback for unknown method or missing data */}
{!isFormSubmit && !isUrlPattern && (
Search mechanism detected but method details are not available.
)}
);
}
);
SearchMechanismCard.displayName = 'SearchMechanismCard';