The reconstruction includes moving the Navbar component from shared to widget because Navbar is a group of elements, and removing the login-signup form due to changes in logic that will use a popup flow to improve the user experience without navigating to another page for authentication.
14 lines
276 B
TypeScript
14 lines
276 B
TypeScript
import NavbarUI from "@/widgets/navbar/ui/Navbar";
|
|
import React from "react";
|
|
|
|
const mainLayout = ({ children }: Readonly<{ children: React.ReactNode }>) => {
|
|
return (
|
|
<div>
|
|
<NavbarUI />
|
|
<main>{children}</main>
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default mainLayout;
|