EscolaLMS/Front

View on GitHub
src/components/Profile/UserSidebar/index.tsx

Summary

Maintainability
A
2 hrs
Test Coverage
import React, { ReactNode } from "react";
import styled from "styled-components";

type Props = {
  title?: string;
  children: ReactNode;
  icon?: ReactNode;
};

const StyledSidebar = styled.div`
  padding: 11px 6px;
  background: ${({ theme }) =>
    theme.mode === "dark" ? theme.dm__cardBackgroundColor : theme.white};
  border-radius: ${({ theme }) => theme.cardRadius}px;
`;

const UserSidebar: React.FC<Props> = ({ children }) => {
  return <StyledSidebar>{children}</StyledSidebar>;
};

export default UserSidebar;