import React, { useState } from "react"; import { AppBar, Toolbar, Typography, IconButton, Grid, Slider, Divider, FormControl, FormLabel, RadioGroup, FormControlLabel, Radio, InputLabel, Select, MenuItem, useTheme } from "@mui/material"; import { Close } from "@mui/icons-material"; import ResponsiveDialog from "common/ResponsiveDialog"; import { useMobile } from "hooks"; import { pond } from "protobuf-ts/pond"; interface Props { type: pond.ShaftType | undefined; setType: any; setDirection: any; } export default function VentDialog(props: Props) { const { type, setType, setDirection } = props; const [ventType, setVentType] = useState("Layflat"); const [ventSubType, setVentSubType] = useState("Round"); const isMobile = useMobile(); const theme = useTheme(); return ( { setType(undefined); }}> Editing Vent Shaft setType(undefined)} aria-label="close"> {type === pond.ShaftType.SHAFT_TYPE_CORNER && (
Direction } label="Clockwise" onClick={() => setDirection(0)} /> } label="Counter Clockwise" onClick={() => setDirection(1)} />
)} Specifications (coming soon) Length: Diameter: Ventilation Type } label="Layflat" onClick={() => { setVentType("Layflat"); setVentSubType("Round"); }} /> } label="Rigid" onClick={() => { setVentType("Rigid"); setVentSubType("Hardline"); }} /> {ventType === "Layflat" ? ( Subtype ) : ( Subtype )}
); }