import { Payload , UseCase } from "almin" ; export const createToggleListGroupUseCase = ( ) => { return new ToggleListGroupUseCase ( ) ; } ; export class ToggleListGroupUseCasePayload implements Payload { type = "ToggleListGroupUseCasePayload" ; constructor ( public categoryKey ) { } } export class ToggleListGroupUseCase extends UseCase { execute ( categoryKey ) { this . dispatch ( new ToggleListGroupUseCasePayload ( categoryKey ) ) ; } }