import { useState } from "react" import styles from "./build.module.css" import {…
- User
import { useState } from "react" import styles from "./build.module.css" import { ToggleButton } from "../../ui-component/toggle-button/toggle-button.component" import { Icon } from "../../ui-component/icon/icon.component" import { useTranslation } from "react-i18next" import { BuildTeam } from "./build-team/build-team.component" import { BuildProduct } from "./build-product/build-product.component"
export function Build() { // --------------------------------------------------------------------------- // variables // ---------------------------------------------------------------------------
let stage = 0 const [selectedProject, setSelectedProject] = useState<string | null>(null) const [selectedTools, setSelectedTools] = useState<string[]>([]) const [teamSize, setTeamSize] = useState<number | null>(null) const [mode, setMode] = useState<"team" | "product">("team") const { t } = useTranslation() // --------------------------------------------------------------------------- // functions // ---------------------------------------------------------------------------
// --------------------------------------------------------------------------- return ( <> {/* --------------------------------------------------------------------------- /} {/ TEAM /} {/ --------------------------------------------------------------------------- */} {mode === "team" && ( <BuildTeam onClickModeOne={() => setMode("team")} onClickModeTwo={() => setMode("product")} /> )}
{/* --------------------------------------------------------------------------- */} {/* PRODUCT */} {/* --------------------------------------------------------------------------- */} {mode === "product" && ( <BuildProduct onClickModeOne={() => setMode("team")} onClickModeTwo={() => setMode("product")} /> )} </>) } this is parent component. I'll ask you in next
- Assistant
Sure! Feel free to ask your question about the parent component, and I'll do my best to help you.
- User
- Assistant