mirror of
https://git.vectorsigma.ru/public/tubearchivist.git
synced 2026-08-04 19:09:29 +00:00
15 lines
373 B
TypeScript
15 lines
373 B
TypeScript
import APIClient from '../../functions/APIClient';
|
|
|
|
export type ChannelNavResponseType = {
|
|
has_streams: boolean;
|
|
has_shorts: boolean;
|
|
has_playlists: boolean;
|
|
has_pending: boolean;
|
|
};
|
|
|
|
const loadChannelNav = async (youtubeChannelId: string) => {
|
|
return APIClient<ChannelNavResponseType>(`/api/channel/${youtubeChannelId}/nav/`);
|
|
};
|
|
|
|
export default loadChannelNav;
|