|
1
|
import { Trans, useTranslation } from "react-i18next" |
|
2
|
import { Link } from "react-router-dom" |
|
3
|
|
|
4
|
export const ReturnShippingPlaceholder = () => { |
|
5
|
const { t } = useTranslation() |
|
6
|
|
|
7
|
return ( |
|
8
|
<div className="flex h-[120px] flex-col items-center justify-center gap-2 p-2 text-center"> |
|
9
|
<span className="txt-small text-ui-fg-subtle font-medium"> |
|
10
|
{t("orders.returns.placeholders.noReturnShippingOptions.title")} |
|
11
|
</span> |
|
12
|
|
|
13
|
<span className="txt-small text-ui-fg-muted"> |
|
14
|
<Trans |
|
15
|
i18nKey="orders.returns.placeholders.noReturnShippingOptions.hint" |
|
16
|
components={{ |
|
17
|
LinkComponent: ( |
|
18
|
<Link to={`/settings/locations`} className="text-blue-500" /> |
|
19
|
), |
|
20
|
}} |
|
21
|
/> |
|
22
|
</span> |
|
23
|
</div> |
|
24
|
) |
|
25
|
} |
|
26
|
|
|
27
|
export const OutboundShippingPlaceholder = () => { |
|
28
|
const { t } = useTranslation() |
|
29
|
|
|
30
|
return ( |
|
31
|
<div className="flex h-[120px] flex-col items-center justify-center gap-2 p-2 text-center"> |
|
32
|
<span className="txt-small text-ui-fg-subtle font-medium"> |
|
33
|
{t("orders.returns.placeholders.outboundShippingOptions.title")} |
|
34
|
</span> |
|
35
|
|
|
36
|
<span className="txt-small text-ui-fg-muted"> |
|
37
|
<Trans |
|
38
|
i18nKey="orders.returns.placeholders.outboundShippingOptions.hint" |
|
39
|
components={{ |
|
40
|
LinkComponent: ( |
|
41
|
<Link to={`/settings/locations`} className="text-blue-500" /> |
|
42
|
), |
|
43
|
}} |
|
44
|
/> |
|
45
|
</span> |
|
46
|
</div> |
|
47
|
) |
|
48
|
} |