InterestingTopics

Виджет «Интересное в журнале» из LiveBar

Props

title

  • type: string
  • default: 'Интересное в журнале'

Заголовок блока

  • type: string
  • default: '/journal'

Куда ведет ссылка «Показать еще»

topics

  • type: InterestingTopic[]
  • required: true

Темы журнала

types

export type InterestingTopic = {
  id: number;
  topic: string;
  slug: string;
  imageUrl: string;
};

Test data

import { testTopic } from './topic/test-data';

export const testTitle = 'Test title';
export const testMoreLink = '/test-more-link';

export const testTopics = [
  { ...testTopic, id: 1 },
  { ...testTopic, id: 2 },
  { ...testTopic, id: 3 },
];
import type { InterestingTopic } from '../types';

export const testTopic: InterestingTopic = {
  id: 4797,
  topic: '30 площадок с бесплатными онлайн-курсами',
  imageUrl: 'https://picsum.photos/200/300',
  slug: '30-ploshchadok-s-besplatnymi-onlayn-kursami',
};