Restructure with Turborepo
Run Tests on Branches / Backend Tests (push) Successful in 3m38s
Run Tests on Branches / Frontend Tests (push) Successful in 3m28s

This commit is contained in:
Antoni Nuñez Romeu
2026-07-06 15:51:53 +02:00
parent f66cafbbc3
commit 190b3d163d
277 changed files with 53253 additions and 0 deletions
@@ -0,0 +1,36 @@
import React from 'react';
import './SearchBar.css';
function SearchBar({ value, onChange, placeholder }) {
return (
<div className="search-bar-container">
<div className="search-bar">
<span className="search-icon">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round">
<circle cx="11" cy="11" r="7" />
<path d="m20 20-3.5-3.5" />
</svg>
</span>
<input
type="text"
value={value}
onChange={(e) => onChange(e.target.value)}
placeholder={placeholder}
className="search-input"
autoFocus
/>
{value && (
<button
className="clear-button"
onClick={() => onChange('')}
aria-label="Limpiar búsqueda"
>
</button>
)}
</div>
</div>
);
}
export default SearchBar;