new-theme-plog

This commit is contained in:
tangly1024.com
2023-07-11 16:48:09 +08:00
parent 563b130e77
commit 2297777bd0
9 changed files with 244 additions and 41 deletions

View File

@@ -0,0 +1,23 @@
import { InformationCircle } from '@/components/HeroIcons'
import SlideOvers from './SlideOvers'
import { useRef } from 'react'
/**
* 显示网站用户信息按钮
* @returns
*/
export default function InformationButton() {
const slideOversRef = useRef({})
const toggleCollapsed = () => {
console.log(slideOversRef)
slideOversRef.current.toggleSlideOvers()
}
return <>
<div className='cursor-pointer' onClick={toggleCollapsed}>
<InformationCircle className={'w-5 h-5'} />
</div>
<SlideOvers cRef={slideOversRef} />
</>
}