import { Link as RemixLink } from '@remix-run/react'; import { ExternalLinkIcon } from '@heroicons/react/outline'; import classNames from 'classnames'; export function LinkCard({ url, title, internal = false, loading = false, description, thumbnail, }: { url: string; internal?: boolean; loading?: boolean; title: React.ReactNode; description?: React.ReactNode; thumbnail?: string; }) { return (
{internal && ( {title} )} {!internal && ( {title} )} {!loading && thumbnail && ( )} {loading && (
)} {!loading && description &&
{description}
}
); }