@prezly/theme-kit-ui
Version:
UI components for Prezly themes
27 lines (26 loc) • 1.07 kB
TypeScript
import type { Culture, UploadedImage } from '@prezly/sdk';
import type { StoryWithImage } from '@/types';
import { CategoriesList } from '../CategoriesList';
import { StoryImage } from './components';
export declare function StoryCard({ story, categories, dateFormat, showDate, locale, newsroomName, logo, size, showSubtitle, className, }: StoryCard.Props): import("react/jsx-runtime").JSX.Element;
export declare namespace StoryCard {
type DisplayedCategory = CategoriesList.DisplayedCategory;
interface DisplayedStory {
title: StoryWithImage['title'];
subtitle: StoryWithImage['subtitle'];
href: `/${string}`;
thumbnailImage: StoryWithImage['thumbnail_image'];
}
interface Props {
story: DisplayedStory;
categories?: StoryCard.DisplayedCategory[];
locale: Culture['code'];
size?: StoryImage.Size;
newsroomName: string;
logo?: UploadedImage | null;
showDate?: boolean;
showSubtitle?: boolean;
className?: string;
dateFormat?: string;
}
}