mirror of
https://github.com/atom/atom.git
synced 2026-01-23 05:48:10 -05:00
14 lines
356 B
CoffeeScript
14 lines
356 B
CoffeeScript
React = require 'react'
|
|
{div} = require 'reactionary'
|
|
|
|
module.exports =
|
|
CursorComponent = React.createClass
|
|
displayName: 'CursorComponent'
|
|
|
|
render: ->
|
|
{top, left, height, width} = @props.cursor.getPixelRect()
|
|
className = 'cursor'
|
|
className += ' blink-off' if @props.blinkOff
|
|
|
|
div className: className, style: {top, left, height, width}
|