mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-25 16:26:51 +08:00
### What problem does this PR solve? Feat: Replace color variables according to design draft #3221 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
16 lines
355 B
TypeScript
16 lines
355 B
TypeScript
import { ReactNode } from 'react';
|
|
|
|
type TopTitleProps = {
|
|
title: ReactNode;
|
|
description: ReactNode;
|
|
};
|
|
|
|
export function TopTitle({ title, description }: TopTitleProps) {
|
|
return (
|
|
<div className="pb-5">
|
|
<div className="text-2xl font-semibold">{title}</div>
|
|
<p className="text-text-secondary pt-2">{description}</p>
|
|
</div>
|
|
);
|
|
}
|