ALwrity SEO CopilotKit Implementation Plan

This commit is contained in:
ajaysi
2025-08-30 20:07:55 +05:30
parent 0f16b855e1
commit 1e0a13e204
8 changed files with 381 additions and 94 deletions

View File

@@ -6,7 +6,8 @@ import { DashboardHeaderProps } from './types';
const DashboardHeader: React.FC<DashboardHeaderProps> = ({
title,
subtitle,
statusChips = []
statusChips = [],
rightContent
}) => {
return (
<ShimmerHeader sx={{ mb: 5 }}>
@@ -33,23 +34,26 @@ const DashboardHeader: React.FC<DashboardHeaderProps> = ({
{subtitle}
</Typography>
</Box>
{statusChips.length > 0 && (
<Box sx={{ display: 'flex', gap: 1.5 }}>
{statusChips.map((chip, index) => (
<Chip
key={index}
icon={chip.icon}
label={chip.label}
sx={{
background: `${chip.color}20`,
border: `1px solid ${chip.color}40`,
color: chip.color,
fontWeight: 700,
}}
/>
))}
</Box>
)}
<Box sx={{ display: 'flex', alignItems: 'center', gap: 1.5 }}>
{statusChips.length > 0 && (
<Box sx={{ display: 'flex', gap: 1.5 }}>
{statusChips.map((chip, index) => (
<Chip
key={index}
icon={chip.icon}
label={chip.label}
sx={{
background: `${chip.color}20`,
border: `1px solid ${chip.color}40`,
color: chip.color,
fontWeight: 700,
}}
/>
))}
</Box>
)}
{rightContent}
</Box>
</Box>
</ShimmerHeader>
);

View File

@@ -83,6 +83,7 @@ export interface DashboardHeaderProps {
color: string;
icon: React.ReactElement;
}>;
rightContent?: React.ReactNode;
}
export interface LoadingSkeletonProps {