import React from 'react'; import Drawer from '../Drawer'; import { Button } from '../../../buttons/Button/Button'; import { PrimaryButton } from '../../../buttons/PrimaryButton/PrimaryButton'; import { TextButton } from '../../../buttons/TextButton/TextButton'; interface IState { showDrawer: boolean; } export class DrawerExample extends React.Component<{}, IState>{ constructor (props: {}, context: any) { super(props, context); this.state = { showDrawer: false, }; } render () { return ( <> console.log('onClick')}>Save ); } } export class DrawerExample2 extends React.Component<{}, IState>{ constructor (props: {}, context: any) { super(props, context); this.state = { showDrawer: false, }; } render () { return ( <> console.log('onClick')} privateOptions={{padding: 'm'}}>Save changes console.log('onClick')}>Cancel ); } }