import { Template } from '../store/types'
import * as types from '../constants/template'

export const initTemplates = (templates: Template[]) => ({
  type: types.INIT_TEMPLATES,
  payload: templates
})

export const setSelectedTemplate = (template: Template | null) => ({
  type: types.SET_SELECTED_TEMPLATE,
  payload: template
})
