import "./PlanComponent.css"; import logo from "./Aivaz.svg"; import { useState } from "react"; import * as moment from "moment"; import "moment/locale/ru"; import { motion, AnimatePresence } from "framer-motion"; import { CalendarComponent } from "./CalendarComponent/CalendarComponent"; import { TimepickerComponent } from "./TimepickerComponent/TimepickerComponent"; import { Form } from "./Form/Form"; import { Finish } from "./Finish/Finish"; import { useAppSelector } from "hooks/redux"; import { popupAnimation } from "utils/animationProps"; export const PlanComponent: React.FC = () => { const { isDone, isCalendar, isTimepicker, isForm, time } = useAppSelector( (state) => state.planReducer ); return (
logo
{isCalendar && ( )} {isTimepicker && ( )} {isForm && (
)} {isDone && ( )}
{!isDone && ( <>
)}
); };