@prezly/theme-kit-ui
Version:
UI components for Prezly themes
18 lines (17 loc) • 603 B
TypeScript
import type { Category } from '@prezly/sdk';
export declare function CategoryBlock({ className, category, intl }: CategoryBlock.Props): import("react/jsx-runtime").JSX.Element;
export declare namespace CategoryBlock {
interface Intl {
['category.view']: string;
}
interface DisplayedCategory {
name: Category.Translation['name'];
description: Category.Translation['description'];
href: `/${string}`;
}
interface Props {
className?: string;
intl?: Partial<CategoryBlock.Intl>;
category: CategoryBlock.DisplayedCategory;
}
}