import { AudioWaveform } from '@/components/ui/audio-waveform';
import { Button } from '@/components/ui/button';
import { Text } from '@/components/ui/text';
import { View } from '@/components/ui/view';
import React, { useState } from 'react';
export function AudioWaveformCompact() {
const [isPlaying1, setIsPlaying1] = useState(false);
const [isPlaying2, setIsPlaying2] = useState(false);
const [isPlaying3, setIsPlaying3] = useState(false);
const [progress1, setProgress1] = useState(20);
const [progress2, setProgress2] = useState(45);
const [progress3, setProgress3] = useState(70);
// Compact chat message data
const messageData1 = [
0.3, 0.5, 0.4, 0.6, 0.3, 0.4, 0.5, 0.3, 0.4, 0.6, 0.5, 0.3, 0.4, 0.5, 0.3,
];
const messageData2 = [
0.2, 0.4, 0.6, 0.5, 0.3, 0.5, 0.4, 0.6, 0.3, 0.4, 0.5, 0.4, 0.3, 0.2, 0.3,
];
const messageData3 = [
0.4, 0.6, 0.5, 0.7, 0.4, 0.3, 0.5, 0.6, 0.4, 0.5, 0.6, 0.5, 0.4, 0.3, 0.4,
];
const MessageBubble = ({
data,
isPlaying,
setIsPlaying,
progress,
setProgress,
duration,
sent = false,
}: {
data: number[];
isPlaying: boolean;
setIsPlaying: (playing: boolean) => void;
progress: number;
setProgress: (progress: number) => void;
duration: string;
sent?: boolean;
}) => (
{duration}
);
return (
);
}