Files
bodyshop/client/src/components/job-detail-cards/job-detail-cards.template.component.jsx
2021-10-04 15:55:43 -07:00

26 lines
497 B
JavaScript

import React from "react";
import { Card } from "antd";
import { Link } from "react-router-dom";
export default function JobDetailCardTemplate({
loading,
title,
extraLink,
...otherProps
}) {
let extra;
if (extraLink) extra = { extra: <Link to={extraLink}>More</Link> };
return (
<Card
size="small"
className="job-card"
title={title}
loading={loading}
style={{ height: "100%" }}
{...extra}
>
{otherProps.children}
</Card>
);
}