useBannerActions

The purpose of useBannerActions hook is to abstract out our store actions and exposes actions handlers responsible for updating store value.

Example usage
const { addBannerItem } = useBannerActions();

Hook Return Value

addBannerItem

Type
Function of type:
({ bannerType, bannerMessage }: {bannerType: BannerType; bannerMessage: string;}) => void