mirror of
https://github.com/EnixCoda/Gitako.git
synced 2026-03-11 08:54:44 +00:00
12 lines
373 B
JavaScript
12 lines
373 B
JavaScript
import React from 'react'
|
|
import Icon from './Icon'
|
|
|
|
import cx from '../utils/cx'
|
|
|
|
export default function Logo({ shouldShow, toggleShowSideBar }) {
|
|
return (
|
|
<div className={cx('gitako-toggle-show-button-wrapper', { collapsed: !shouldShow })} onClick={toggleShowSideBar}>
|
|
<Icon className={'action-icon'} type={shouldShow ? 'x' : 'octoface'} />
|
|
</div>
|
|
)
|
|
}
|