mirror of https://github.com/msgbyte/tailchat
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
412 B
TypeScript
19 lines
412 B
TypeScript
import React from 'react';
|
|
|
|
interface CommonSidebarProps {
|
|
['data-tc-role']?: string;
|
|
}
|
|
export const CommonSidebarWrapper: React.FC<CommonSidebarProps> = React.memo(
|
|
(props) => {
|
|
return (
|
|
<div
|
|
className="h-full flex flex-col"
|
|
data-tc-role={props['data-tc-role']}
|
|
>
|
|
{props.children}
|
|
</div>
|
|
);
|
|
}
|
|
);
|
|
CommonSidebarWrapper.displayName = 'CommonSidebarWrapper';
|