Offers, tabelka z uslugami

This commit is contained in:
dm
2025-11-21 21:01:47 +01:00
parent 8c0e59b173
commit c09f12f305
14 changed files with 699 additions and 17 deletions

View File

@@ -0,0 +1,27 @@
import "../../styles/offers/offers-switches.css";
export default function OffersSwitches({ switches, selected, onSwitch }) {
if (!switches.length) return null;
return (
<div class="fuz-switches-wrapper">
{switches.map((sw) => (
<div class="fuz-switch-block">
<div class="fuz-switch-group">
{sw.opcje.map((op) => (
<button
type="button"
class={`fuz-switch ${
selected[sw.id] === op.id ? "active" : ""
}`}
onClick={() => onSwitch(sw.id, op.id)}
>
{op.nazwa}
</button>
))}
</div>
</div>
))}
</div>
);
}