mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 12:28:42 +00:00
18 lines
447 B
TypeScript
18 lines
447 B
TypeScript
import type { FC, HTMLAttributes } from 'react';
|
|
|
|
import { settingHeader } from './share.css';
|
|
|
|
export const SettingHeader: FC<
|
|
{ title: string; subtitle?: string } & Omit<
|
|
HTMLAttributes<HTMLDivElement>,
|
|
'title'
|
|
>
|
|
> = ({ title, subtitle, ...otherProps }) => {
|
|
return (
|
|
<div className={settingHeader} {...otherProps}>
|
|
<div className="title">{title}</div>
|
|
<div className="subtitle">{subtitle}</div>
|
|
</div>
|
|
);
|
|
};
|