Skip to content

Commit 82f9b15

Browse files
committed
feat: update getMedia function with return type
1 parent 7374226 commit 82f9b15

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

src/embedded/hooks/useEmbeddedView/getMedia.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,14 @@ export const getMedia = (
2020
viewType: IterableEmbeddedViewType,
2121
/** The message to render. */
2222
message: IterableEmbeddedMessage
23-
) => {
23+
): {
24+
/** The URL of the media to render. */
25+
url: string | null;
26+
/** The caption of the media to render. */
27+
caption: string | null;
28+
/** Whether the media should be shown. */
29+
shouldShow: boolean;
30+
} => {
2431
if (viewType === IterableEmbeddedViewType.Notification) {
2532
return { url: null, caption: null, shouldShow: false };
2633
}

0 commit comments

Comments
 (0)