import { NEXT_PUBLIC_CMS_API_URL } from '../../configs' export interface ImageCMSProps { attributes: { url: string } } export interface ImageCMSItemProps { data: ImageCMSProps } export interface ImageCMSListProps { data: ImageCMSProps[] } export const getCMSImageUrl = (url: string) => { if (url.startsWith('/')) { return `${NEXT_PUBLIC_CMS_API_URL}${url}` } return url }