w-lab-app/src/components/domains/chat/ChatItemsListHeader/ChatItemsListHeader.tsx
2025-07-26 20:22:00 +04:00

27 lines
643 B
TypeScript

import { Typography } from "@/components/ui";
import { ViewAll, ViewAllProps } from "..";
import styles from "./ChatItemsListHeader.module.scss";
interface ChatItemsListHeaderProps {
title: string;
viewAllProps: ViewAllProps;
isVisibleViewAll?: boolean;
}
export default function ChatItemsListHeader({
title,
viewAllProps,
isVisibleViewAll = true,
}: ChatItemsListHeaderProps) {
return (
<div className={styles.chatItemsListHeader}>
<Typography className={styles.title} as="h3" size="lg" weight="bold">
{title}
</Typography>
{isVisibleViewAll && <ViewAll {...viewAllProps} />}
</div>
);
}