18ea4f82fd
支持 Bug/需求提交、截图与聊天同款语音输入,全站反馈分页浏览与详情页,并从聊天与空间页提供入口。 Co-authored-by: Cursor <cursoragent@cursor.com>
31 lines
694 B
TypeScript
31 lines
694 B
TypeScript
import { TKMindAvatar } from './TKMindAvatar';
|
|
|
|
export function FeedbackPageHeader({
|
|
title,
|
|
onBack,
|
|
onLogout,
|
|
}: {
|
|
title: string;
|
|
onBack: () => void;
|
|
onLogout?: () => void;
|
|
}) {
|
|
return (
|
|
<header className="feedback-submit-header">
|
|
<button type="button" className="ghost-btn" onClick={onBack}>
|
|
返回
|
|
</button>
|
|
<div className="feedback-submit-header-brand">
|
|
<TKMindAvatar size="sm" />
|
|
<span>{title}</span>
|
|
</div>
|
|
{onLogout ? (
|
|
<button type="button" className="ghost-btn logout-btn" onClick={onLogout}>
|
|
登出
|
|
</button>
|
|
) : (
|
|
<span aria-hidden="true" />
|
|
)}
|
|
</header>
|
|
);
|
|
}
|