import {createActionGroup, emptyProps, props} from "@ngrx/store";

export const fromFilters = createActionGroup({
    source: 'Filters',
    events: {
        'Set Username': props<{ username: string }>(),
        'Set Free Text': props<{ freeText: ReadonlyArray<string> }>(),
        'Set Lists': props<{ lists: ReadonlyArray<string> }>(),
        'Set Unlisted': props<{ unlisted: boolean }>(),
        'Clear Filters': emptyProps(),
    },
});
