mirror of
https://github.com/kremalicious/umami.git
synced 2024-11-15 17:55:08 +01:00
21 lines
546 B
JavaScript
21 lines
546 B
JavaScript
import { Button, Icon, Icons, Tooltip } from 'react-basics';
|
|
import Link from 'next/link';
|
|
import useMessages from 'hooks/useMessages';
|
|
|
|
export function LogoutButton({ tooltipPosition = 'top' }) {
|
|
const { formatMessage, labels } = useMessages();
|
|
return (
|
|
<Link href="/logout">
|
|
<Tooltip label={formatMessage(labels.logout)} position={tooltipPosition}>
|
|
<Button variant="quiet">
|
|
<Icon>
|
|
<Icons.Logout />
|
|
</Icon>
|
|
</Button>
|
|
</Tooltip>
|
|
</Link>
|
|
);
|
|
}
|
|
|
|
export default LogoutButton;
|