UNPKG

@prezly/theme-kit-ui

Version:
27 lines 973 B
import React from "react"; import { CATEGORIES } from "../Navigation/__mocks__/index.mjs"; import { CategoryBlock } from "./CategoryBlock.mjs"; var DISPLAYED_CATEGORIES = CATEGORIES.map(category => ({ name: category.display_name, description: category.display_description, href: "/category/".concat(category.display_name.toLowerCase().replace(' ', '-')) })); export default { title: 'Components/CategoryBlock', component: CategoryBlock, parameters: { design: { type: 'figma', url: 'https://www.figma.com/file/46dEAasj1iEtrVQOwmMswB/00--%3E-Themes-Design-System?type=design&node-id=1361-68432&mode=dev' } } }; var CategoryBlockTemplate = args => /*#__PURE__*/React.createElement(CategoryBlock, args); export var Default = CategoryBlockTemplate.bind({}); Default.args = { category: DISPLAYED_CATEGORIES[2] }; export var WithoutDescription = CategoryBlockTemplate.bind({}); WithoutDescription.args = { category: DISPLAYED_CATEGORIES[0] };