UNPKG

@chayns-components/core

Version:

A set of beautiful React components for developing your own applications with chayns.

24 lines 669 B
import { getSite } from 'chayns-api'; export const getDesignSettings = async siteId => { let id = siteId; if (!id) id = getSite().id; const response = await fetch(`https://api.chayns.net/css/${id}/style/v2`, { method: 'GET' }); if (response.status === 200) { return await response.json(); } return undefined; }; export const getParagraphFormat = async siteId => { let id = siteId; if (!id) id = getSite().id; const response = await fetch(`https://api.chayns.net/css/${id}/paragraphFormat`, { method: 'GET' }); if (response.status === 200) { return await response.json(); } return undefined; }; //# sourceMappingURL=get.js.map