This repository has been archived on 2022-09-16. You can view files and clone it, but cannot push or open issues or pull requests.
tlaternet-templates/src/music/index.tsx

28 lines
594 B
TypeScript
Raw Normal View History

import React from "react";
import ReactDOM from "react-dom";
import { Provider } from "react-redux";
import { store } from "./store";
import MusicPlayer from "./MusicPlayer";
import { setSource, setTitle } from "./store/music/types";
import mseq from "./Mseq_-_Journey.mp3";
const rootElement = document.getElementById("playerUI");
ReactDOM.render(
<Provider store={store}>
<MusicPlayer />
</Provider>,
rootElement
);
store.dispatch(setSource(mseq));
store.dispatch(
setTitle({
name: "Journey",
artist: "Mseq",
album: "Unknown album",
length: 192052244,
})
);