import { Payload , UseCase } from "almin" ; import { SubscriptionContentIdentifier } from "../../../../../../domain/Subscriptions/SubscriptionContent/SubscriptionContent" ; export class ScrollToNextContentUseCasePayload implements Payload { type = "ScrollToNextContentUseCase" ; constructor ( public subscriptionContentId ) { } } export class ScrollToNextContentUseCase extends UseCase { execute ( subscriptionContentId ) { this . dispatch ( new ScrollToNextContentUseCasePayload ( subscriptionContentId ) ) ; } }