diff --git a/components/Dashboard/TeamVoiceLine.tsx b/components/Dashboard/TeamVoiceLine.tsx index f73f5e3..2d21675 100644 --- a/components/Dashboard/TeamVoiceLine.tsx +++ b/components/Dashboard/TeamVoiceLine.tsx @@ -217,10 +217,7 @@ export default function TeamVoiceLine() { - diff --git a/components/PowerPlayer.tsx b/components/PowerPlayer.tsx new file mode 100644 index 0000000..aec58cf --- /dev/null +++ b/components/PowerPlayer.tsx @@ -0,0 +1,72 @@ +import { Modal, Tooltip } from "antd"; +import { Message } from "../models/message"; +import { FaBackward } from "react-icons/fa"; + +export default function PowerPlayer(props: { messages: Message[] }) { + // two arrays: + // 1. all of my messages in order date desc => top + // 2. all of incoming messages in order date desc => bottom + + return ( + +
+ {/* top incoming messages */} +
+ + + asdf + + + + + + asdf + + + + + + asdf + + +
+ + {/* middle line */} +
+ + {/* bottom outgoing messages */} +
+ + +
+
+
+ + + +
+
+
+ + + +
+
+
+
+
+
+ ); +} diff --git a/contexts/audioContext.tsx b/contexts/audioContext.tsx index 25ff205..5c68db7 100644 --- a/contexts/audioContext.tsx +++ b/contexts/audioContext.tsx @@ -7,6 +7,7 @@ import { v4 as uuidv4 } from "uuid"; import AudioPlayer from "react-h5-audio-player"; import "react-h5-audio-player/lib/styles.css"; import CloudStorageService from "../services/cloudStorageService"; +import PowerPlayer from "../components/PowerPlayer"; interface AudioContextInterface { selectedTeammate: string; // can only have one selected @@ -335,8 +336,11 @@ export default function AudioContextProvider({ children }) { return ( {children} - {/* player for audio messages */} + {/* mega power mode viewer */} + + + {/* player for audio messages */} {startPlaying ? (