display audio action
This commit is contained in:
parent
b0e82f82c9
commit
9b18319486
|
|
@ -147,6 +147,13 @@ export default function ActionCard({
|
||||||
className={`w-full select-none ${!action.text && "rounded-b-md"} rounded-t-md`}
|
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>}
|
{action.text && <div className="p-4">{action.text}</div>}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user