diff --git a/src/components/mainComponents/AdBlock.tsx b/src/components/layoutComponents/AdBlock.tsx
similarity index 91%
rename from src/components/mainComponents/AdBlock.tsx
rename to src/components/layoutComponents/AdBlock.tsx
index c7bb3a2b..f3baa4cf 100644
--- a/src/components/mainComponents/AdBlock.tsx
+++ b/src/components/layoutComponents/AdBlock.tsx
@@ -4,8 +4,7 @@ import { AdCard } from "../cardComponents/AdCard";
export function AdBlock({ads}: {ads: any[]}) {
return (
-
Реклама
{ads.map(ad => )}
);
-}
+}
\ No newline at end of file
diff --git a/src/components/mainComponents/Footer.tsx b/src/components/layoutComponents/Footer.tsx
similarity index 100%
rename from src/components/mainComponents/Footer.tsx
rename to src/components/layoutComponents/Footer.tsx
diff --git a/src/components/mainComponents/Header.tsx b/src/components/layoutComponents/Header.tsx
similarity index 60%
rename from src/components/mainComponents/Header.tsx
rename to src/components/layoutComponents/Header.tsx
index eeae08c3..b0bfbd46 100644
--- a/src/components/mainComponents/Header.tsx
+++ b/src/components/layoutComponents/Header.tsx
@@ -1,14 +1,15 @@
import React from 'react';
import { Button } from 'antd';
import { UserOutlined } from '@ant-design/icons';
+import { Link } from 'react-router-dom';
export function Header() {
return (
-
😈 DEVIL music
-
+
);
}
\ No newline at end of file
diff --git a/src/components/layoutComponents/Layout.tsx b/src/components/layoutComponents/Layout.tsx
new file mode 100644
index 00000000..4f78d97d
--- /dev/null
+++ b/src/components/layoutComponents/Layout.tsx
@@ -0,0 +1,20 @@
+import React from 'react';
+import { Button } from 'antd';
+import { UserOutlined } from '@ant-design/icons';
+import { Link, Outlet } from 'react-router-dom';
+import { IPlaylist, ISong, IAlbum, IGenre, IAdvertisement } from '../../models/IModels';
+import { CurrentTrack } from '../songComponents/CurrentTrack';
+import { AdBlock } from './AdBlock';
+import { Footer } from './Footer';
+import { Header } from './Header';
+import { MenuBlock } from './MenuBlock';
+
+export function Layout() {
+ return (
+ <>
+
+
+
+ >
+ );
+}
\ No newline at end of file
diff --git a/src/components/mainComponents/MenuBlock.tsx b/src/components/layoutComponents/MenuBlock.tsx
similarity index 89%
rename from src/components/mainComponents/MenuBlock.tsx
rename to src/components/layoutComponents/MenuBlock.tsx
index b2dff541..fcd8efa5 100644
--- a/src/components/mainComponents/MenuBlock.tsx
+++ b/src/components/layoutComponents/MenuBlock.tsx
@@ -33,11 +33,11 @@ export function MenuBlock({playlists, songs, albums, genres}: MenuBlockProps) {
const tabs = [chartTab, playlistsTab, newSongsTab];
return (
-