aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/atoms/sidebar/sidebar.tsx
blob: 2ee53c67c10698c5223c6bcba9ad9742f7e43597 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import type { FC } from 'react';
import { Aside, type AsideProps } from '../layout';
import styles from './sidebar.module.scss';

export type SidebarProps = AsideProps;

/**
 * Sidebar component
 */
export const Sidebar: FC<SidebarProps> = ({
  children,
  className = '',
  ...props
}) => {
  const sidebarClass = `${styles.wrapper} ${className}`;

  return (
    <Aside {...props} className={sidebarClass}>
      <div className={styles.body}>{children}</div>
    </Aside>
  );
};