mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-14 08:36:22 +08:00
20 lines
395 B
TypeScript
20 lines
395 B
TypeScript
import type { PropsWithChildren, ReactNode } from 'react';
|
|
|
|
import { wrapper } from './share.css';
|
|
|
|
interface SettingWrapperProps {
|
|
title?: ReactNode;
|
|
}
|
|
|
|
export const SettingWrapper = ({
|
|
title,
|
|
children,
|
|
}: PropsWithChildren<SettingWrapperProps>) => {
|
|
return (
|
|
<div className={wrapper}>
|
|
{title ? <div className="title">{title}</div> : null}
|
|
{children}
|
|
</div>
|
|
);
|
|
};
|