-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4b2196c
commit ef6bc75
Showing
1 changed file
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import { Meta, StoryObj } from '@storybook/html'; | ||
import type { Components } from '../../components.js'; | ||
|
||
const meta = { | ||
title: 'Design System/Molecule/SettingsMenu', | ||
render: args => `<d-settings-menu | ||
account-settings="${args.accountSettings}" | ||
security-and-authentication="${args.securityAndAuthentication}" | ||
notifications-settings="${args.notificationsSettings}" | ||
languages="${args.languages}" | ||
support="${args.support}" | ||
privacy-policy="${args.privacyPolicy}" | ||
log-out="${args.logOut}" | ||
version="${args.version}" | ||
developed-by="${args.developedBy}" | ||
logoutCB="${args.logoutCB}" | ||
gotoLanguageSettings="${args.gotoLanguageSettings}" | ||
openAppSettings="${args.openAppSettings}" | ||
></d-settings-menu>`, | ||
} satisfies Meta<Components.DSettingsMenu>; | ||
|
||
export default meta; | ||
type Story = StoryObj<Components.DSettingsMenu>; | ||
|
||
export const Default: Story = { | ||
args: { | ||
accountSettings: 'Account settings', | ||
securityAndAuthentication: 'Security and authentication', | ||
notificationsSettings: 'Notifications settings', | ||
languages: 'Languages', | ||
support: 'Support', | ||
privacyPolicy: 'Privacy policy', | ||
logOut: 'Log out', | ||
version: 'Version', | ||
developedBy: 'Developed by', | ||
logoutCB: () => {}, | ||
gotoLanguageSettings: () => {}, | ||
openAppSettings: () => {}, | ||
}, | ||
}; |