Some checks failed
Branch Build CE / Build Setup (push) Has been cancelled
Branch Build CE / Build-Push Admin Docker Image (push) Has been cancelled
Branch Build CE / Build-Push Web Docker Image (push) Has been cancelled
Branch Build CE / Build-Push Space Docker Image (push) Has been cancelled
Branch Build CE / Build-Push Live Collaboration Docker Image (push) Has been cancelled
Branch Build CE / Build-Push API Server Docker Image (push) Has been cancelled
Branch Build CE / Build-Push Proxy Docker Image (push) Has been cancelled
Branch Build CE / Build-Push AIO Docker Image (push) Has been cancelled
Branch Build CE / Upload Build Assets (push) Has been cancelled
Branch Build CE / Build Release (push) Has been cancelled
CodeQL / Analyze (javascript) (push) Has been cancelled
CodeQL / Analyze (python) (push) Has been cancelled
Codespell / Check for spelling errors (push) Has been cancelled
Sync Repositories / sync_changes (push) Has been cancelled
Synced from upstream: 8853637e981ed7d8a6cff32bd98e7afe20f54362
31 lines
858 B
TypeScript
31 lines
858 B
TypeScript
import { cn } from "@plane/utils";
|
|
|
|
type Props = {
|
|
title?: string;
|
|
children: React.ReactNode;
|
|
className?: string;
|
|
subtitle?: string | null;
|
|
actions?: React.ReactNode;
|
|
headerClassName?: string;
|
|
};
|
|
|
|
const AnalyticsSectionWrapper: React.FC<Props> = (props) => {
|
|
const { title, children, className, subtitle, actions, headerClassName } = props;
|
|
return (
|
|
<div className={className}>
|
|
<div className={cn("mb-6 flex items-center gap-2 text-nowrap ", headerClassName)}>
|
|
{title && (
|
|
<div className="flex items-center gap-2 ">
|
|
<h1 className={"text-lg font-medium"}>{title}</h1>
|
|
{/* {subtitle && <p className="text-lg text-custom-text-300"> • {subtitle}</p>} */}
|
|
</div>
|
|
)}
|
|
{actions}
|
|
</div>
|
|
{children}
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default AnalyticsSectionWrapper;
|