overleaf-cep/services/web/frontend/js/features/ide-redesign/components/settings/button-setting.tsx
David a853a92765 Merge pull request #24350 from overleaf/dp-settings-modal
Implement new editor settings modal options

GitOrigin-RevId: b16358e29f2ebcac6e7f92f1c0196f5911f2e733
2025-03-24 10:49:41 +00:00

32 lines
607 B
TypeScript

import OLButton from '@/features/ui/components/ol/ol-button'
import Setting from './setting'
export default function ButtonSetting({
id,
label,
buttonText,
onClick,
description,
disabled,
}: {
id: string
label: string
buttonText: string
onClick: () => void
description?: string
disabled?: boolean
}) {
return (
<Setting controlId={id} label={label} description={description}>
<OLButton
id={id}
variant="secondary"
size="sm"
onClick={onClick}
disabled={disabled}
>
{buttonText}
</OLButton>
</Setting>
)
}