mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-27 02:51:57 +02:00
Tearing down of old Editor (Settings) GitOrigin-RevId: d9e23e61a8e34eb22e9c9e3453a157fb275f68f0
28 lines
630 B
TypeScript
28 lines
630 B
TypeScript
import React from 'react'
|
|
|
|
export default function Setting({
|
|
label,
|
|
controlId,
|
|
children,
|
|
description = undefined,
|
|
}: {
|
|
label: React.ReactNode
|
|
description: React.ReactNode | 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>
|
|
)
|
|
}
|