1import Theme from "../themes/common/theme";
2import { backgroundColor, borderColor, text } from "./components";
3
4export default function incomingCallNotification(theme: Theme): Object {
5 const avatarSize = 32;
6 return {
7 background: backgroundColor(theme, 300),
8 callerContainer: {
9 padding: 12,
10 },
11 callerAvatar: {
12 height: avatarSize,
13 width: avatarSize,
14 cornerRadius: avatarSize / 2,
15 },
16 callerMetadata: {
17 margin: { left: 10 },
18 },
19 callerUsername: {
20 ...text(theme, "sans", "active", { size: "sm", weight: "bold" }),
21 margin: { top: -3 },
22 },
23 callerMessage: {
24 ...text(theme, "sans", "secondary", { size: "xs" }),
25 margin: { top: -3 },
26 },
27 buttonWidth: 96,
28 acceptButton: {
29 background: backgroundColor(theme, "ok", "active"),
30 border: { left: true, bottom: true, width: 1, color: borderColor(theme, "primary") },
31 ...text(theme, "sans", "ok", { size: "xs", weight: "extra_bold" })
32 },
33 declineButton: {
34 border: { left: true, width: 1, color: borderColor(theme, "primary") },
35 ...text(theme, "sans", "error", { size: "xs", weight: "extra_bold" })
36 },
37 };
38}