|
1
|
import { DataTableEmptyStateProps } from "@medusajs/ui" |
|
2
|
import { useMemo } from "react" |
|
3
|
import { useTranslation } from "react-i18next" |
|
4
|
|
|
5
|
export const useSalesChannelTableEmptyState = (): DataTableEmptyStateProps => { |
|
6
|
const { t } = useTranslation() |
|
7
|
|
|
8
|
return useMemo(() => { |
|
9
|
const content: DataTableEmptyStateProps = { |
|
10
|
empty: { |
|
11
|
heading: t("salesChannels.list.empty.heading"), |
|
12
|
description: t("salesChannels.list.empty.description"), |
|
13
|
}, |
|
14
|
filtered: { |
|
15
|
heading: t("salesChannels.list.filtered.heading"), |
|
16
|
description: t("salesChannels.list.filtered.description"), |
|
17
|
}, |
|
18
|
} |
|
19
|
|
|
20
|
return content |
|
21
|
}, [t]) |
|
22
|
} |