mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-01-16 08:36:40 +01:00
18 lines
462 B
TypeScript
18 lines
462 B
TypeScript
import { memo } from 'react';
|
|
import { useSidebarHidden } from '../hooks/useSidebarHidden';
|
|
import { IconButton } from './core/IconButton';
|
|
|
|
export const SidebarActions = memo(function SidebarActions() {
|
|
const { hidden, toggle } = useSidebarHidden();
|
|
|
|
return (
|
|
<IconButton
|
|
onClick={toggle}
|
|
className="pointer-events-auto"
|
|
size="sm"
|
|
title="Show sidebar"
|
|
icon={hidden ? 'leftPanelHidden' : 'leftPanelVisible'}
|
|
/>
|
|
);
|
|
});
|