mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-17 05:38:04 +00:00
feat: updates
This commit is contained in:
parent
a1b0bcf4d3
commit
884f3df41a
198 changed files with 4572 additions and 5336 deletions
22
packages/web/components/TrafficLight.tsx
Normal file
22
packages/web/components/TrafficLight.tsx
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
import { useSnapshot } from 'valtio'
|
||||
import uiStates from '@/web/states/uiStates'
|
||||
|
||||
const TrafficLight = () => {
|
||||
const { fullscreen } = useSnapshot(uiStates)
|
||||
|
||||
if (fullscreen) {
|
||||
return <></>
|
||||
}
|
||||
|
||||
const className =
|
||||
'mr-2 h-3 w-3 rounded-full last-of-type:mr-0 dark:bg-white/20'
|
||||
return (
|
||||
<div className='flex'>
|
||||
<div className={className}></div>
|
||||
<div className={className}></div>
|
||||
<div className={className}></div>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
export default TrafficLight
|
||||
Loading…
Add table
Add a link
Reference in a new issue