mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-11 15:16:28 +08:00
53c531c931
fix AF-2572   <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Introduced a Meetings welcome page with a beta disclaimer and "Get Started" flow. - Added separate toggles for AI auto summary and AI auto todo list in meeting settings. - Added "Beta" labels to relevant settings and sidebar items for clearer feature status. - Enhanced settings UI with improved headers, subtitles, and new styling. - **Improvements** - Meeting settings now allow independent control over AI-generated summaries and todo lists. - Updated internationalization to support new meeting and AI transcription features, including richer prompts and hints. - Refined logic for enabling meeting recording, including improved permission handling. - Simplified transcription logic to rely solely on AI enablement flag. - **Bug Fixes** - Fixed display and control of meeting settings based on beta disclaimer acceptance. - **Chores** - Updated localization files and completeness percentages for several languages. - Removed deprecated feature flag for enabling meetings. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
28 lines
659 B
TypeScript
28 lines
659 B
TypeScript
import type { HTMLAttributes, ReactNode } from 'react';
|
|
|
|
import { settingHeader, settingHeaderBeta } from './share.css';
|
|
|
|
interface SettingHeaderProps
|
|
extends Omit<HTMLAttributes<HTMLDivElement>, 'title'> {
|
|
title: ReactNode;
|
|
subtitle?: ReactNode;
|
|
beta?: boolean;
|
|
}
|
|
|
|
export const SettingHeader = ({
|
|
title,
|
|
subtitle,
|
|
beta,
|
|
...otherProps
|
|
}: SettingHeaderProps) => {
|
|
return (
|
|
<div className={settingHeader} {...otherProps}>
|
|
<div className="title">
|
|
{title}
|
|
{beta ? <div className={settingHeaderBeta}>Beta</div> : null}
|
|
</div>
|
|
{subtitle ? <div className="subtitle">{subtitle}</div> : null}
|
|
</div>
|
|
);
|
|
};
|