import store from 'store'

export default (props) => {
	const { text, x = 0, y = 0, size = 32, color = '#000', font = 'Base', align = 'left' } = props
	const ctx = store.ctx

	ctx.textAlign = align
	ctx.textBaseline = 'hanging'
	ctx.fillStyle = color
	ctx.font = size + 'px ' + font
	ctx.fillText(text, x, y)
}
