14 lines
315 B
TypeScript
14 lines
315 B
TypeScript
"use client";
|
|
|
|
import { useContext } from "react";
|
|
import { DanmuContext } from "./provider";
|
|
|
|
export default function CurrentInput() {
|
|
const state = useContext(DanmuContext);
|
|
return (
|
|
<div className="input">
|
|
{state.songName ?? ""} {state.songId ? "-" : ""} {state.songArtist ?? ""}
|
|
</div>
|
|
);
|
|
}
|