feat(app): add new settings dialog

This commit is contained in:
ItzCrazyKns
2025-10-18 15:10:43 +05:30
parent 97bee75e39
commit 97e542acf8
11 changed files with 1365 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
import { UIConfigField } from '@/lib/config/types';
import SettingsField from '../SettingsField';
const Search = ({
fields,
values,
}: {
fields: UIConfigField[];
values: Record<string, any>;
}) => {
return (
<div className="flex-1 space-y-6 overflow-y-auto px-6 py-6">
{fields.map((field) => (
<SettingsField
key={field.key}
field={field}
value={
(field.scope === 'client'
? localStorage.getItem(field.key)
: values[field.key]) ?? field.default
}
dataAdd="search"
/>
))}
</div>
);
};
export default Search;