2021-02-09 14:30:23 -08:00
|
|
|
import { Divider, Space } from 'antd';
|
2021-02-03 11:49:51 -08:00
|
|
|
import React from 'react';
|
|
|
|
import { Link } from 'react-router-dom';
|
|
|
|
|
|
|
|
interface Props extends React.PropsWithChildren<any> {
|
|
|
|
title?: React.ReactNode;
|
|
|
|
url: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export default function DefaultPreviewCard({ title, url, children }: Props) {
|
|
|
|
return (
|
2021-02-09 14:30:23 -08:00
|
|
|
<Space direction="vertical" style={{ width: '100%' }}>
|
|
|
|
<div style={{ padding: '0% 5%' }}>
|
|
|
|
<Link to={url} style={{ color: '#0073b1' }} type="link">
|
|
|
|
{title}
|
|
|
|
</Link>
|
|
|
|
{children}
|
|
|
|
</div>
|
2021-02-03 11:49:51 -08:00
|
|
|
<Divider />
|
2021-02-09 14:30:23 -08:00
|
|
|
</Space>
|
2021-02-03 11:49:51 -08:00
|
|
|
);
|
|
|
|
}
|