35 lines
781 B
TypeScript
35 lines
781 B
TypeScript
import type { Meta, StoryObj } from '@storybook/react';
|
|
import { PrivacySettings } from './PrivacySettings';
|
|
|
|
const meta: Meta<typeof PrivacySettings> = {
|
|
title: 'Components/Features/Settings/PrivacySettings',
|
|
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,
|
|
},
|
|
},
|
|
};
|