import { useState } from 'react'; import { formatBytes } from '../../utils'; import IconDownload from "../../../assets/icons/download.svg"; import IconAudio from "../../../assets/icons/file.audio.svg"; import clsx from 'clsx'; type Props = { url: string, name: string, size: number, download: string } const AudioMessage = ({ url, name, size, download }: Props) => { const [canPlay, setCanPlay] = useState(false); const handleCanPlay = () => { setCanPlay(true); }; const _size = formatBytes(size); return (
); }; export default AudioMessage;