mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-08-16 13:55:51 -07:00
13 lines
420 B
TypeScript
13 lines
420 B
TypeScript
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,
|
|
};
|
|
}
|