UNPKG

862 BJavaScriptView Raw
1import React from 'react';
2import { styled } from '@storybook/theming';
3import { Link } from '../../typography/link/link';
4var NoControlsWrapper = styled.div(function (_ref) {
5 var theme = _ref.theme;
6 return {
7 background: theme.background.warning,
8 color: theme.color.darkest,
9 padding: '10px 15px',
10 lineHeight: '20px',
11 boxShadow: "".concat(theme.appBorderColor, " 0 -1px 0 0 inset")
12 };
13});
14export var NoControlsWarning = function NoControlsWarning() {
15 return /*#__PURE__*/React.createElement(NoControlsWrapper, null, "This story is not configured to handle controls.", ' ', /*#__PURE__*/React.createElement(Link, {
16 href: "https://storybook.js.org/docs/react/essentials/controls",
17 target: "_blank",
18 cancel: false,
19 withArrow: true
20 }, "Learn how to add controls"));
21};
22NoControlsWarning.displayName = "NoControlsWarning";
\No newline at end of file