/*
This file is part of GNU Taler
(C) 2022 Taler Systems S.A.
GNU Taler is free software; you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation; either version 3, or (at your option) any later version.
GNU Taler is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
GNU Taler; see the file COPYING. If not, see
*/
/**
*
* @author Sebastian Javier Marchano (sebasjm)
*/
import { h, VNode } from "preact";
import { useState } from "preact/hooks";
import { Menu, MenuItem } from "./Menu.jsx";
import { Paper } from "./Paper.js";
export default {
title: "menu",
component: Menu,
};
export const BasicExample = (): VNode => {
const [open, setOpen] = useState(false);
async function handleClose(): Promise {
setOpen(false);
}
async function handleClick(): Promise {
setOpen(true);
}
return (
);
};
import { styled } from "@linaria/react";
import { theme } from "./style.js";
import { Typography } from "./Typography.js";
import { Divider } from "./Divider.js";
const ListItemIcon = styled.div`
min-width: 36px;
color: ${theme.palette.action.active};
flex-shrink: 0;
display: inline-flex;
`;
const IconCut = (): VNode => (
);
const IconCopy = (): VNode => (
);
const IconPaste = (): VNode => (
);
const IconCloud = (): VNode => (
);
const ListItemText = styled.div`
flex: 1 1 auto;
min-width: 0px;
margin-top: 4px;
margin-bottom: 4px;
`;
export function IconMenu(): VNode {
return (