feat(react/settings): port images

This commit is contained in:
Elian Doran
2025-08-14 22:27:07 +03:00
parent d04897e011
commit c67c3a6861
5 changed files with 61 additions and 104 deletions

View File

@@ -7,11 +7,12 @@ interface FormGroupProps {
className?: string;
children: ComponentChildren;
description?: string | ComponentChildren;
disabled?: boolean;
}
export default function FormGroup({ label, title, className, children, description, labelRef }: FormGroupProps) {
export default function FormGroup({ label, title, className, children, description, labelRef, disabled }: FormGroupProps) {
return (
<div className={`form-group ${className}`} title={title}
<div className={`form-group ${className} ${disabled ? "disabled" : ""}`} title={title}
style={{ "margin-bottom": "15px" }}>
<label style={{ width: "100%" }} ref={labelRef}>
{label && <div style={{ "margin-bottom": "10px" }}>{label}</div> }