gone
This commit is contained in:
parent
245b792e0e
commit
b7ed1e1b0b
1 changed files with 14 additions and 14 deletions
|
@ -1,17 +1,17 @@
|
|||
import { useLanyard } from "use-lanyard";
|
||||
import constants from "@/lib/constants";
|
||||
import yard from "@/styles/Lanyard.module.sass"
|
||||
// import { useLanyard } from "use-lanyard";
|
||||
// import constants from "@/lib/constants";
|
||||
// import yard from "@/styles/Lanyard.module.sass"
|
||||
|
||||
const Lanyard = () => {
|
||||
const lanyard = useLanyard(constants.ids.discord as `${bigint}`).data
|
||||
if (!lanyard?.listening_to_spotify) return (<></>);
|
||||
return (
|
||||
<div id={yard.lanyard}>
|
||||
<img src={lanyard?.spotify?.album_art_url as string} alt="" />
|
||||
<span> {lanyard?.spotify?.song} by {lanyard?.spotify?.artist.split(';').length < 3 ? (lanyard?.spotify?.artist.split(';') as string[]).join(" &") : (lanyard?.spotify?.artist.split(';')[0])} </span>
|
||||
</div>
|
||||
// const Lanyard = () => {
|
||||
// const lanyard = useLanyard(constants.ids.discord as `${bigint}`).data
|
||||
// if (!lanyard?.listening_to_spotify) return (<></>);
|
||||
// return (
|
||||
// <div id={yard.lanyard}>
|
||||
// <img src={lanyard?.spotify?.album_art_url as string} alt="" />
|
||||
// <span> {lanyard?.spotify?.song} by {lanyard?.spotify?.artist.split(';').length < 3 ? (lanyard?.spotify?.artist.split(';') as string[]).join(" &") : (lanyard?.spotify?.artist.split(';')[0])} </span>
|
||||
// </div>
|
||||
|
||||
);
|
||||
};
|
||||
// );
|
||||
// };
|
||||
|
||||
export default Lanyard;
|
||||
// export default Lanyard;
|
Loading…
Add table
Reference in a new issue