import type { Meta, StoryObj } from '@storybook/react'; import { ProfileActions } from './ProfileActions'; const meta: Meta = { title: 'Components/Features/User/ProfileActions', component: ProfileActions, tags: ['autodocs'], parameters: { layout: 'centered' }, }; export default meta; type Story = StoryObj; export const HiddenWhenNotEditing: Story = { args: { isEditing: false }, render: (args) => (

(No buttons when not editing)

), }; export const Editing: Story = { args: { isEditing: true, onCancel: () => {}, cancelLabel: 'Cancel', saveLabel: 'Save', }, render: (args) => (
), }; export const Loading: Story = { args: { isEditing: true, isLoading: true, onCancel: () => {}, saveLabel: 'Save', }, render: (args) => (
), };