mirror of
https://github.com/Nezumi-2711/react-training.git
synced 2026-09-23 04:19:48 +00:00
21 lines
333 B
TypeScript
21 lines
333 B
TypeScript
// Components
|
|
import Nav from '@component/Nav';
|
|
|
|
// Styled
|
|
import { Heading, StyledSidebar } from './styled';
|
|
|
|
interface ISidebar {
|
|
heading: string;
|
|
}
|
|
|
|
const Sidebar = ({ heading }: ISidebar) => {
|
|
return (
|
|
<StyledSidebar>
|
|
<Heading>{heading}</Heading>
|
|
<Nav />
|
|
</StyledSidebar>
|
|
);
|
|
};
|
|
|
|
export default Sidebar;
|