mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-16 01:26:37 +08:00
3968deb6d4
Co-authored-by: Qi <474021214@qq.com>
16 lines
354 B
TypeScript
16 lines
354 B
TypeScript
import type { FC, PropsWithChildren, ReactNode } from 'react';
|
|
|
|
import { wrapper } from './share.css';
|
|
export const SettingWrapper: FC<
|
|
PropsWithChildren<{
|
|
title?: ReactNode;
|
|
}>
|
|
> = ({ title, children }) => {
|
|
return (
|
|
<div className={wrapper}>
|
|
{title ? <div className="title">{title}</div> : null}
|
|
{children}
|
|
</div>
|
|
);
|
|
};
|