Skip to content

Commit 733c130

Browse files
committed
chore(visualizer): create message component for no schema state
1 parent 89ee194 commit 733c130

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import { type StoryObj, type Meta } from "@storybook/react";
2+
3+
import NoSchemaMessage from "./NoSchemaMessage";
4+
5+
const meta = {
6+
title: "components/Messages/NoSchemaMessage",
7+
component: NoSchemaMessage,
8+
} satisfies Meta<typeof NoSchemaMessage>;
9+
10+
export default meta;
11+
12+
type Story = StoryObj<typeof NoSchemaMessage>;
13+
14+
export const NoSchemaMessageStory: Story = {
15+
render: () => <NoSchemaMessage />,
16+
};
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import MessageWrapper from "./MessageWrapper";
2+
3+
const NoSchemaMessage = () => {
4+
return (
5+
<MessageWrapper>
6+
<p>No schema found</p>
7+
</MessageWrapper>
8+
);
9+
};
10+
11+
export default NoSchemaMessage;

0 commit comments

Comments
 (0)