display audio action

This commit is contained in:
Robert 2024-03-18 22:31:53 +07:00
parent b0e82f82c9
commit 9b18319486
No known key found for this signature in database
GPG Key ID: F631C7FD957D5F22

View File

@ -147,6 +147,13 @@ export default function ActionCard({
className={`w-full select-none ${!action.text && "rounded-b-md"} rounded-t-md`}
/>
)}
{attachmentType === "voice" && (
<div className="flex justify-center p-3">
<audio controls>
<source src={action.fileUrls[0]} type="audio/mp3" />
</audio>
</div>
)}
{action.text && <div className="p-4">{action.text}</div>}
</div>
);