import { faker } from '@faker-js/faker';

export interface UserSettings {
    theme: 'light' | 'dark' | 'system';
    fontSize: number;
    reduceMotion: boolean;
    language: string;
    notificationsEnabled: boolean;
}

export const createSettings = (overrides: Partial<UserSettings> = {}): UserSettings => {
    return {
        theme: faker.helpers.arrayElement(['light', 'dark', 'system']),
        fontSize: faker.number.int({ min: 12, max: 24 }),
        reduceMotion: faker.datatype.boolean(),
        language: 'en-US',
        notificationsEnabled: faker.datatype.boolean(),
        ...overrides,
    };
};
