mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-08-16 13:55:51 -07:00
feat(notifications): add overlay notifications with position config (#110)
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
import type { ResolvedConfig } from '../../types/config';
|
||||
import type { OverlayNotificationPayload } from '../../types/notification';
|
||||
|
||||
export function withConfiguredOverlayNotificationPosition(
|
||||
payload: OverlayNotificationPayload,
|
||||
config: Pick<ResolvedConfig, 'notifications'>,
|
||||
): OverlayNotificationPayload {
|
||||
return {
|
||||
...payload,
|
||||
position: payload.position ?? config.notifications.overlayPosition,
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user