Skip to content

Instantly share code, notes, and snippets.

View KirdesMF's full-sized avatar
🏠
Working from home

KirdesGrvl KirdesMF

🏠
Working from home
View GitHub Profile
@KirdesMF
KirdesMF / audio-player.tsx
Last active May 13, 2022 17:23
React audio player
import { useEffect, useRef, useState } from 'react';
import { clsx, formatTime } from '~/utils/utils';
import * as Icon from './icons';
import type { Song } from '~/models/song';
type Props = {
songs: Array<Song>;
};
export function AudioPlayer(props: Props) {