import { useState } from "react"; import { useCreateSetup, useSetups } from "../hooks/useSetups"; import { SetupCard } from "./SetupCard"; export function SetupsView() { const [newSetupName, setNewSetupName] = useState(""); const { data: setups, isLoading } = useSetups(); const createSetup = useCreateSetup(); function handleCreateSetup(e: React.FormEvent) { e.preventDefault(); const name = newSetupName.trim(); if (!name) return; createSetup.mutate({ name }, { onSuccess: () => setNewSetupName("") }); } return (
Create a setup
Name your loadout for a specific trip or activity
Add items
Pick gear from your collection to include in the setup
Track weight
See weight breakdown and optimize your pack