feat: mark as watched, episode page uses userdata, progress etc

This commit is contained in:
Aleksi Lassila
2025-02-02 16:15:35 +02:00
parent 27467a28b2
commit 1478d507dc
24 changed files with 959 additions and 562 deletions

View File

@@ -25,7 +25,13 @@ function useNotificationStack() {
}
export const notificationStack = useNotificationStack();
export const createErrorNotification = (message: string) => {
export const createErrorNotification = (title: string, message?: string) => {
console.error(message);
notificationStack.create(Notification, { title: 'Unexpected error occurred', body: message });
notificationStack.create(Notification, {
title: message ? title : 'Unexpected error occurred',
body: message ?? title
});
};
export const createInfoNotification = (title: string, message?: string) => {
notificationStack.create(Notification, { title, body: message });
};