veza/apps/web/src/features/settings/components/PrivacySettings.stories.tsx

36 lines
781 B
TypeScript
Raw Normal View History

2026-02-03 08:56:11 +00:00
import type { Meta, StoryObj } from '@storybook/react';
import { PrivacySettings } from './PrivacySettings';
const meta: Meta<typeof PrivacySettings> = {
title: 'Components/Features/Settings/PrivacySettings',
2026-02-03 08:56:11 +00:00
component: PrivacySettings,
parameters: {
layout: 'centered',
},
tags: ['autodocs'],
argTypes: {
onChange: { action: 'onChange' },
},
};
export default meta;
type Story = StoryObj<typeof PrivacySettings>;
export const Default: Story = {
args: {
privacy: {
allow_search_indexing: false,
show_activity: true,
},
},
};
export const Private: Story = {
args: {
privacy: {
allow_search_indexing: false,
show_activity: false,
},
},
};