mirror of
https://github.com/immich-app/immich.git
synced 2025-12-19 01:11:07 +03:00
16 lines
573 B
TypeScript
16 lines
573 B
TypeScript
import type { ResetOptions } from '$lib/utils/dipatch';
|
|
import type { SystemConfigDto } from '@immich/sdk';
|
|
|
|
export type SettingsResetOptions = ResetOptions & { configKeys: Array<keyof SystemConfigDto> };
|
|
export type SettingsResetEvent = (options: SettingsResetOptions) => void;
|
|
export type SettingsSaveEvent = (config: Partial<SystemConfigDto>) => void;
|
|
|
|
export type SettingsComponentProps = {
|
|
disabled?: boolean;
|
|
defaultConfig: SystemConfigDto;
|
|
config: SystemConfigDto;
|
|
savedConfig: SystemConfigDto;
|
|
onReset: SettingsResetEvent;
|
|
onSave: SettingsSaveEvent;
|
|
};
|