mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2025-07-31 02:00:07 +02:00

Add initial components for new editor settings modal GitOrigin-RevId: e3eb511d2af9265e0fc1cf54178b3e2953717950
18 lines
341 B
TypeScript
18 lines
341 B
TypeScript
export default function SettingsSection({
|
|
children,
|
|
title,
|
|
}: {
|
|
children: React.ReactNode | React.ReactNode[]
|
|
title?: string
|
|
}) {
|
|
if (!children) {
|
|
return null
|
|
}
|
|
|
|
return (
|
|
<div className="ide-settings-section">
|
|
{title && <div className="ide-settings-section-title">{title}</div>}
|
|
{children}
|
|
</div>
|
|
)
|
|
}
|