Skip to content

Commit

Permalink
[editor] Audio Output Renderer
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Holinshead committed Jan 9, 2024
1 parent bcd2921 commit 7e35a75
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ export default memo(function MimeTypeRenderer({ mimeType, content }: Props) {
case "image":
// TODO: Figure out base64 encoding
return <Image alt="Attachment image" src={content} maw={300} />;
case "audio":
return (
<audio controls>
<source src={content} type={mimeType} />
</audio>
);
default: // "text"
return <span>{content}</span>;
}
Expand Down

0 comments on commit 7e35a75

Please sign in to comment.