|
1
|
import React from "react" |
|
2
|
import { CardProps } from "../../../.." |
|
3
|
import clsx from "clsx" |
|
4
|
import Link from "next/link" |
|
5
|
|
|
6
|
export const CardFillerLayout = ({ text, href, className }: CardProps) => { |
|
7
|
return ( |
|
8
|
<div |
|
9
|
className={clsx( |
|
10
|
"flex justify-center items-center w-full", |
|
11
|
"gap-docs_0.75 px-docs_0.75 py-docs_0.5 rounded-docs_DEFAULT", |
|
12
|
"border border-dashed border-medusa-border-strong", |
|
13
|
"bg-medusa-bg-component text-medusa-fg-subtle", |
|
14
|
className |
|
15
|
)} |
|
16
|
> |
|
17
|
<div> |
|
18
|
<span className="text-compact-small">{text}</span> |
|
19
|
{href && ( |
|
20
|
<> |
|
21
|
{" "} |
|
22
|
<Link href={href} className="text-compact-small-plus"> |
|
23
|
Show All↗ |
|
24
|
</Link> |
|
25
|
</> |
|
26
|
)} |
|
27
|
</div> |
|
28
|
</div> |
|
29
|
) |
|
30
|
} |