1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-01 23:20:51 +00:00
Files
seahub/frontend/src/components/common/logout.js

18 lines
533 B
JavaScript
Raw Normal View History

import React from 'react';
import { siteRoot, gettext } from '../../utils/constants'
export default function Logout() {
const style = {
width: '32px',
height: '32px',
marginLeft: '8px',
color: '#bbb',
textDecoration: 'none'
};
const classname = "d-flex align-items-center justify-content-center"
return (
<a className={classname} style={style} href={`${siteRoot}accounts/logout/`} title={gettext('Logout')}>
<i className="sf3-font sf3-font-logout" style={{fontSize: '24px'}}></i>
</a>
)
}