mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-14 21:27:20 +00:00
@@ -4,17 +4,19 @@ import type { PropsWithChildren, ReactNode } from 'react';
|
||||
import { wrapper, wrapperDisabled } from './share.css';
|
||||
|
||||
interface SettingWrapperProps {
|
||||
id?: string;
|
||||
title?: ReactNode;
|
||||
disabled?: boolean;
|
||||
}
|
||||
|
||||
export const SettingWrapper = ({
|
||||
id,
|
||||
title,
|
||||
children,
|
||||
disabled,
|
||||
}: PropsWithChildren<SettingWrapperProps>) => {
|
||||
return (
|
||||
<div className={clsx(wrapper, disabled && wrapperDisabled)}>
|
||||
<div id={id} className={clsx(wrapper, disabled && wrapperDisabled)}>
|
||||
{title ? <div className="title">{title}</div> : null}
|
||||
{children}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user