mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-03-01 00:00:26 +00:00
* feat: 统一并标准化eslint * lint: napcat.webui * lint: napcat.webui * lint: napcat.core * build: fix * lint: napcat.webui * refactor: 重构eslint * Update README.md
12 lines
197 B
TypeScript
12 lines
197 B
TypeScript
import React from 'react';
|
|
|
|
import { AudioContext } from '@/contexts/songs';
|
|
|
|
const useMusic = () => {
|
|
const music = React.useContext(AudioContext);
|
|
|
|
return music;
|
|
};
|
|
|
|
export default useMusic;
|