import {useSelector} from "react-redux";
import {RootState} from "../../redux/store";
import {NoOrderScreen} from "../NoOrderScreen/NoOrderScreen";
import AssemblyView from "./AssemblyView";


const AssemblyScreen = () => {
    const order = useSelector((state: RootState) => state.assembly.order);
    return (
        order ? <AssemblyView order={order}/> : <NoOrderScreen/>
    )
}

export default AssemblyScreen;