pleroma/src/actions/trends.ts

15 lines
287 B
TypeScript
Raw Normal View History

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,
};