import { publicApi } from './http'

export async function fetchActiveAnnouncement() {
  const { data } = await publicApi.get('/announcements/active')
  return data
}

export async function dismissAnnouncement(announcementId) {
  const { data } = await publicApi.post(`/announcements/${announcementId}/dismiss`, {})
  return data
}

