/* * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at https://mozilla.org/MPL/2.0/. * * OpenCRVS is also distributed under the terms of the Civil Registration * & Healthcare Disclaimer located at http://opencrvs.org/license. * * Copyright (C) The OpenCRVS Authors located at https://github.com/opencrvs/opencrvs-core/blob/master/AUTHORS. */ import React from 'react' import { ComponentMeta, ComponentStory } from '@storybook/react' import { AppBar } from './AppBar' import { Button } from '../Button' import { Hamburger, DeclarationIcon } from '../icons' import { Stack } from '../Stack' import { SearchTool } from '../SearchTool' import { noop } from 'lodash' import { Icon } from '../Icon' export default { title: 'Layout/AppBar', component: AppBar, argTypes: { desktopLeft: { control: 'null' }, desktopRight: { control: 'null' }, desktopCenter: { control: 'null' }, mobileLeft: { control: 'null' }, mobileRight: { control: 'null' } } } as ComponentMeta const Template: ComponentStory = (args) => (
) export const Default = Template.bind({}) as ComponentStory Default.args = { desktopTitle: 'OpenCRVS', mobileTitle: 'OpenCRVS', desktopLeft: ( ), mobileLeft: ( ), desktopRight: ( ), mobileRight: } Default.parameters = { layout: 'fullscreen' } export const Home = Template.bind({}) as ComponentStory Home.args = { mobileLeft: ( ), mobileTitle: 'Search', mobileRight: , desktopLeft: ( ), desktopCenter: ( , label: 'Tracking ID', placeHolderText: 'Search' }, { name: 'REGISTRATION_NUMBER', icon: , label: 'Registration No.', placeHolderText: 'Search' }, { name: 'PHONE_NUMBER', icon: , label: 'Phone no.', placeHolderText: 'Search' } ]} /> ), desktopRight: ( ) } Home.parameters = { layout: 'fullscreen' } export const Declaration = Template.bind({}) as ComponentStory Declaration.args = { mobileLeft: , desktopLeft: , mobileTitle: 'Birth declaration', desktopTitle: 'Birth declaration', mobileRight: , desktopRight: ( ) } Declaration.parameters = { layout: 'fullscreen' }