* chore: remove analytics duration filter * removed subtitle from title and date_filter from service call * chore: removed the date filter * bottom text of insight trend card * chore: changed issue manager * fix: limited items in table * fix: removed unnecessary props from data-table --------- Co-authored-by: JayashTripathy <jayashtripathy371@gmail.com> Co-authored-by: NarayanBavisetti <narayan3119@gmail.com>
30 lines
858 B
TypeScript
30 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;
|