mirror of
https://github.com/sergeyyarkov/educt-client.git
synced 2026-10-11 10:19:22 +03:00
23 lines
578 B
TypeScript
23 lines
578 B
TypeScript
import React from 'react';
|
|
import { BoxProps, GridItem, GridItemProps } from '@chakra-ui/react';
|
|
import { Heading } from './Heading';
|
|
import { Users } from './Users/Users';
|
|
|
|
export interface ISidebarComposition {
|
|
Heading: React.FC<BoxProps>;
|
|
Users: React.FC;
|
|
}
|
|
|
|
const Sidebar: React.FC<GridItemProps> & ISidebarComposition = props => {
|
|
return (
|
|
<GridItem pt='7rem' borderRightWidth={{ base: '0', lg: '1px' }} px={{ base: '0', lg: '3' }} {...props}>
|
|
{props.children}
|
|
</GridItem>
|
|
);
|
|
};
|
|
|
|
Sidebar.Heading = Heading;
|
|
Sidebar.Users = Users;
|
|
|
|
export { Sidebar };
|