Home > @shopware-pwa/composables > useNotifications
# useNotifications() function
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Signature:
export declare function useNotifications(): {
notifications: ComputedRef<Notification[]>;
removeOne: (id: number) => void;
removeAll: () => void;
pushInfo: (message: string, options?: any) => void;
pushWarning: (message: string, options?: any) => void;
pushError: (message: string, options?: any) => void;
pushSuccess: (message: string, options?: any) => void;
};
Returns:
{ notifications: ComputedRef<Notification[]>; removeOne: (id: number) => void; removeAll: () => void; pushInfo: (message: string, options?: any) => void; pushWarning: (message: string, options?: any) => void; pushError: (message: string, options?: any) => void; pushSuccess: (message: string, options?: any) => void; }