Big smart

This commit is contained in:
Lncvrt committed 2026-03-27 12:45:58 -07:00
1 parent 57441a8872
commit f2b0358605
12 files changed
+7 -7

No files matched your search

+27
View File
@@ -0,0 +1,27 @@
import './Setting.css'
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import { faCheck } from '@fortawesome/free-solid-svg-icons'
import { SettingProps } from '@/types/SettingProps'
export function Setting ({
label,
value,
onChange,
className,
title
}: SettingProps) {
return (
<div className={`flex items-center gap-2 mb-2 ${className}`} title={title}>
<label className='text-white text-lg'>{label}</label>
<div className='setting-checkbox-wrapper'>
<input
type='checkbox'
className='setting-checkbox'
checked={value}
onChange={() => onChange(!value)}
/>
{value && <FontAwesomeIcon icon={faCheck} className='fa-check-icon' />}
</div>
</div>
)
}