mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-07 08:09:01 +02:00
213b645875
Update editor switching behaviour for new user split test GitOrigin-RevId: 61ef678ba216323d283bda4cc77d8c465b8c87df
28 lines
621 B
TypeScript
28 lines
621 B
TypeScript
import React from 'react'
|
|
|
|
export default function Setting({
|
|
label,
|
|
controlId,
|
|
children,
|
|
description = undefined,
|
|
}: {
|
|
label: React.ReactNode
|
|
description: string | undefined
|
|
controlId: string
|
|
children: React.ReactNode
|
|
}) {
|
|
return (
|
|
<div id={`setting-${controlId}`} className="ide-setting">
|
|
<div>
|
|
<label htmlFor={controlId} className="ide-setting-title">
|
|
{label}
|
|
</label>
|
|
{description && (
|
|
<div className="ide-setting-description">{description}</div>
|
|
)}
|
|
</div>
|
|
<div className="ide-setting-input">{children}</div>
|
|
</div>
|
|
)
|
|
}
|