Files
ncd-fe/src/actions/trends.ts
marcin mikołajczak 4dfdfcccd3 Migrate to external library for interacting with API
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2024-08-04 16:09:52 +02:00

15 lines
287 B
TypeScript

import type { APIEntity } from 'soapbox/types/entities';
const TRENDS_FETCH_SUCCESS = 'TRENDS_FETCH_SUCCESS';
const fetchTrendsSuccess = (tags: APIEntity[]) => ({
type: TRENDS_FETCH_SUCCESS,
tags,
skipLoading: true,
});
export {
TRENDS_FETCH_SUCCESS,
fetchTrendsSuccess,
};