import React from 'react';
import PropTypes from 'prop-types';
export default {
title: 'addons/useGlobalArgs',
};
export const PassedToStory = ({ globalArgs }) => {
return (
Global args:
{JSON.stringify(globalArgs)}
);
};
PassedToStory.propTypes = {
globalArgs: PropTypes.shape({}).isRequired,
};
export const SecondStory = ({ globalArgs }) => {
return (
Global args (2):
{JSON.stringify(globalArgs)}
);
};
SecondStory.propTypes = {
globalArgs: PropTypes.shape({}).isRequired,
};