mirror of
https://github.com/wavetermdev/waveterm.git
synced 2024-12-22 16:48:23 +01:00
28 lines
613 B
TypeScript
28 lines
613 B
TypeScript
// organize-imports-ignore
|
|
import type { Preview } from "@storybook/react";
|
|
import React from "react";
|
|
import { DndProvider } from "react-dnd";
|
|
import { HTML5Backend } from "react-dnd-html5-backend";
|
|
|
|
import "./global.css";
|
|
|
|
const preview: Preview = {
|
|
parameters: {
|
|
controls: {
|
|
matchers: {
|
|
color: /(background|color)$/i,
|
|
date: /Date$/i,
|
|
},
|
|
},
|
|
},
|
|
decorators: [
|
|
(Story) => (
|
|
<DndProvider backend={HTML5Backend}>
|
|
<Story />
|
|
</DndProvider>
|
|
),
|
|
],
|
|
};
|
|
|
|
export default preview;
|