analytics/assets/js/dashboard/stats/more-link.js

17 lines
615 B
JavaScript
Raw Normal View History

import React from 'react';
import { Link } from 'react-router-dom'
2020-03-03 16:15:09 +03:00
export default function MoreLink({site, list, endpoint}) {
if (list.length > 0) {
return (
<div className="text-center w-full absolute bottom-0 left-0 p-4">
2020-03-26 16:43:55 +03:00
<Link to={`/${encodeURIComponent(site.domain)}/${endpoint}${window.location.search}`} className="leading-snug font-bold text-sm text-gray-500 hover:text-red-500 transition tracking-wide">
<svg className="feather mr-1" style={{marginTop: '-2px'}}><use xlinkHref="#feather-maximize" /></svg>
2020-03-03 16:15:09 +03:00
MORE
</Link>
</div>
)
}
return null
}