import { getMinutes } from 'date-fns' import PropTypes from 'prop-types' import React from 'react' const Tick = ({ tick, count, format }) => { const isFullHour = !getMinutes(tick.value) const tickLabelStyle = { marginLeft: `${-(100 / count) / 2}%`, width: `${100 / count}%`, left: `${tick.percent}%`, } return ( <>
{isFullHour && (