- Eliminated `initialStats` prop from `HomePageClient` and `KanbanPageClient` to streamline data handling. - Updated `Header` and `HeaderContainer` components to remove references to `stats`, enhancing clarity and reducing unnecessary complexity. - Adjusted `useTasks` hook to make `stats` optional, ensuring compatibility with the updated components.
22 lines
389 B
TypeScript
22 lines
389 B
TypeScript
'use client';
|
|
|
|
import { Header } from './Header';
|
|
import { useTasks } from '@/hooks/useTasks';
|
|
|
|
interface HeaderContainerProps {
|
|
title: string;
|
|
subtitle: string;
|
|
}
|
|
|
|
export function HeaderContainer({ title, subtitle }: HeaderContainerProps) {
|
|
const { syncing } = useTasks();
|
|
|
|
return (
|
|
<Header
|
|
title={title}
|
|
subtitle={subtitle}
|
|
syncing={syncing}
|
|
/>
|
|
);
|
|
}
|