mirror of
				https://github.com/mastermindzh/rickvanlieshout.com
				synced 2025-10-31 08:40:27 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			34 lines
		
	
	
		
			936 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			34 lines
		
	
	
		
			936 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| import React from "react";
 | |
| import { ThemeSwitcher } from "../ThemeSwitcher/ThemeSwitcher";
 | |
| import { Author } from "./Author";
 | |
| import { Contacts } from "./Contacts";
 | |
| import { Copyright } from "./Copyright";
 | |
| import { Menu } from "./Menu";
 | |
| import * as styles from "./Sidebar.module.scss";
 | |
| import { useSiteMetadata } from "@/hooks";
 | |
| 
 | |
| type Props = {
 | |
|   isIndex?: boolean;
 | |
| };
 | |
| 
 | |
| const Sidebar = ({ isIndex }: Props) => {
 | |
|   const { author, copyright, menu, legalMenu } = useSiteMetadata();
 | |
| 
 | |
|   return (
 | |
|     <div className={styles.sidebar}>
 | |
|       <div className={styles.inner}>
 | |
|         <Author author={author} isIndex={isIndex} />
 | |
|         <span className="hideInPrintView">
 | |
|           <Menu menu={menu} />
 | |
|           <Contacts contacts={author.contacts} />
 | |
|           <Copyright copyright={copyright} />
 | |
|           <Menu menu={legalMenu} />
 | |
|           <ThemeSwitcher showLabel />
 | |
|         </span>
 | |
|       </div>
 | |
|     </div>
 | |
|   );
 | |
| };
 | |
| 
 | |
| export default Sidebar;
 |