Updated layout. Fixed properties rendering.
This commit is contained in:
14
src/components/input/PanelButton.tsx
Normal file
14
src/components/input/PanelButton.tsx
Normal file
@@ -0,0 +1,14 @@
|
||||
import { Button, Icon } from '@umami/react-zen';
|
||||
import { PanelLeft } from '@/components/icons';
|
||||
import { useGlobalState } from '@/components/hooks';
|
||||
|
||||
export function PanelButton() {
|
||||
const [isCollapsed, setIsCollapsed] = useGlobalState('sidenav-collapsed');
|
||||
return (
|
||||
<Button onPress={() => setIsCollapsed(!isCollapsed)} variant="quiet">
|
||||
<Icon>
|
||||
<PanelLeft />
|
||||
</Icon>
|
||||
</Button>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user