author BounceCode, Inc.
 *  packageDocumentation import * as React from 'react' ; import { SnackbarProvider } from 'notistack' ; import UserTableView from './UserTableView' ; import { withKnobs , number , object } from '@storybook/addon-knobs' ; import { ITableDataCallback } from '../hooks/useUserTableDataCallback' ; export default { title : 'Components/Admin' , component : UserTableView , decorators : [ withKnobs ] , } ; export const UserTable = ( ) => { const data = async ( query ) => { return { data : object ( 'data' , [ { id : 1 , email : 'test@example.com' , isAdmin : true , payload : { displayName : '홍길동' } , createdDate : new Date ( ) , updatedDate : new Date ( ) , } , ] ) , page : number ( 'page' , 1 ) , totalCount : number ( 'totalCount' , 100 ) , } ; } ; return ( < SnackbarProvider > < UserTableView data = { data } / > < /SnackbarProvider>); } ;