mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-14 23:16:49 +00:00
23 lines
553 B
JavaScript
23 lines
553 B
JavaScript
import { InformationCircle } from '@/components/HeroIcons'
|
|
import SlideOvers from './SlideOvers'
|
|
import { useRef } from 'react'
|
|
|
|
/**
|
|
* 显示网站用户信息按钮
|
|
* @returns
|
|
*/
|
|
export default function InformationButton() {
|
|
const slideOversRef = useRef({})
|
|
const toggleCollapsed = () => {
|
|
slideOversRef.current.toggleSlideOvers()
|
|
}
|
|
|
|
return <>
|
|
<div className='cursor-pointer' onClick={toggleCollapsed}>
|
|
<InformationCircle className={'w-5 h-5'} />
|
|
</div>
|
|
|
|
<SlideOvers cRef={slideOversRef} />
|
|
</>
|
|
}
|