import React from "react"; import { render } from "react-dom"; export const getAsDataURI = text => `data:text/html;base64,${window.btoa(text)}`; // Replaces deprecated "noshade" attribute const noshadeStyle = { height: "2px", borderWidth: 0, color: "gray", backgroundColor: "gray" }; // TODO: Move tag out to the string creation step in order // to avoid the warning. const Playlist = props => (
WINAMP
playlist
|
{props.numberOfTracks}
{" track in playlist, average track length: "}
{props.averageTrackLength}
{"Playlist length: "} {props.playlistLengthMinutes} {" minutes "} {props.playlistLengthSeconds} {" second "} Right-click here to save this HTML file. |
Playlist files: {/* Added closing tag here */}
{props.tracks.map(track => ( {track}
))} {/* Added closing tag here */}