import React, { HTMLAttributes, useState } from 'react'; import SongTable from './SongTable'; import classNames from 'classnames'; import { FaPlay, FaPause, FaStepForward, FaStepBackward } from 'react-icons/fa'; interface NowPlayingProps extends HTMLAttributes { songName: string; fileName: string; isPlaying: boolean; onPlayPause: () => void; onStepForward: () => void; onStepBackward: () => void; } const NowPlaying: React.FC = (props) => { return ( {props.songName} {props.fileName} {props.isPlaying ? : } ); }; const App: React.FC = () => { const [isPlaying, setIsPlaying] = useState(false); return ( setIsPlaying(!isPlaying)} onStepForward={() => {}} onStepBackward={() => {}} /> ); }; export default App;