From dc6b5e704f0c0108e3982ff3a90c55cf1c35ab7a Mon Sep 17 00:00:00 2001 From: Angelillo15 Date: Fri, 4 Aug 2023 19:22:32 +0200 Subject: [PATCH] Create SideBar with Children props --- resources/scripts/components/Sidebar.tsx | 32 ++++++------------------ 1 file changed, 7 insertions(+), 25 deletions(-) diff --git a/resources/scripts/components/Sidebar.tsx b/resources/scripts/components/Sidebar.tsx index 9b423770d..312b5c2ef 100644 --- a/resources/scripts/components/Sidebar.tsx +++ b/resources/scripts/components/Sidebar.tsx @@ -1,32 +1,14 @@ -import React from 'react'; -import { NavLink } from 'react-router-dom'; +import React, { ReactNode } from 'react'; import '@/assets/css/sidebar.css'; -const Sidebar = () => { +type ParentProps = { + children: ReactNode; +}; + +export default ({ children }: Omit) => { return ( <> -
- - Home - - - - Resources - - - - Editor - - - - GitHub - - - Discord - -
+
{children}
); }; - -export default Sidebar;