Files
AFFiNE-Mirror/packages/component/src/components/setting-components/wrapper.tsx
T
2023-07-11 15:50:30 +00:00

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>
);
};