discord-card-react
Version:
React Discord profile card component
33 lines (32 loc) • 1.56 kB
TypeScript
/**
* Renders a section displaying Spotify song information.
*
* @param {string} title - The title of the section
* @param {string} song - The name of the song
* @param {string} artist - The name of the artist
* @param {string} album - The name of the album
* @param {string} artUrl - The URL of the album art
* @param {string} trackUrl - The URL of the track on Spotify
* @param {number} startTimeMs - The start time of the song in milliseconds
* @param {number} endTimeMs - The end time of the song in milliseconds
* @param {string} primaryColor - The color of the button (inherited from card)
* @param {string} playOnSpotifyText - The text to display on the button (default: Play on Spotify)
* @param {string} byString - The string to display before the artist's name (default: by)
* @param {string} onString - The string to display before the album's name (default: on)
* @return {JSX.Element} The rendered Spotify section
*/
declare const SpotifySection: ({ title, song, artist, album, artUrl, trackUrl, startTimeMs, endTimeMs, primaryColor, playOnSpotifyText, byText, onText, }: {
title?: string | undefined;
song: string;
artist: string;
album: string;
artUrl?: string | undefined;
trackUrl?: string | undefined;
startTimeMs?: number | undefined;
endTimeMs?: number | undefined;
primaryColor?: string | undefined;
playOnSpotifyText?: string | undefined;
byText?: string | undefined;
onText?: string | undefined;
}) => import("react/jsx-runtime").JSX.Element;
export default SpotifySection;