Content page storybook added

This commit is contained in:
adilallo
2025-09-12 14:17:41 -06:00
parent ea023d5ec6
commit 8daea70cb8
10 changed files with 447 additions and 357 deletions
+38
View File
@@ -0,0 +1,38 @@
import ConditionalHeader from "../app/components/ConditionalHeader";
export default {
title: "Components/ConditionalHeader",
component: ConditionalHeader,
parameters: {
docs: {
description: {
component:
"The ConditionalHeader component conditionally renders either HomeHeader or Header based on the current pathname.",
},
},
},
argTypes: {
pathname: {
control: "text",
description: "Current pathname to determine which header to render",
},
},
};
export const HomePage = {
args: {
pathname: "/",
},
};
export const BlogPage = {
args: {
pathname: "/blog/sample-article",
},
};
export const OtherPage = {
args: {
pathname: "/about",
},
};