import { useState } from 'react' import { Button } from '@mui/material' import { Meta, StoryObj } from '@storybook/react' import Popover from '..' import { MenuPopoverProps } from '../types' const meta: Meta = { title: '@baseapp-frontend | designSystem/Popovers/Popover', component: Popover, } export default meta type Story = StoryObj const PopoverTemplate = (args: any) => { const [anchorEl, setAnchorEl] = useState(null) const handleClick = (event: React.MouseEvent) => { setAnchorEl(event.currentTarget) } const handleClose = () => { setAnchorEl(null) } return (
This is the content of the Popover
) } export const TopRight: Story = { render: (args) => , args: { open: null, arrow: 'top-right', hiddenArrow: false, }, } export const TopLeft: Story = { render: (args) => , args: { open: null, arrow: 'top-left', hiddenArrow: false, }, } export const BottomRight: Story = { render: (args) => , args: { open: null, arrow: 'bottom-right', hiddenArrow: false, }, } export const BottomLeft: Story = { render: (args) => , args: { open: null, arrow: 'bottom-left', hiddenArrow: false, }, } export const Left: Story = { render: (args) => , args: { open: null, arrow: 'left', hiddenArrow: false, }, } export const Right: Story = { render: (args) => , args: { open: null, arrow: 'right', hiddenArrow: false, }, }