mirror of
https://github.com/langgenius/dify.git
synced 2026-07-22 11:38:34 +08:00
Co-authored-by: hjlarry <hjlarry@163.com> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: yyh <yuanyouhuilyz@gmail.com> Co-authored-by: yyh <92089059+lyzno1@users.noreply.github.com>
24 lines
619 B
TypeScript
24 lines
619 B
TypeScript
import * as React from 'react'
|
|
import { useTranslation } from 'react-i18next'
|
|
import FilterEmptyState from '@/app/components/base/filter-empty-state'
|
|
|
|
type EmptyProps = {
|
|
message?: string
|
|
stepByStepTourTarget?: string
|
|
}
|
|
|
|
const Empty = ({ message, stepByStepTourTarget }: EmptyProps) => {
|
|
const { t } = useTranslation()
|
|
|
|
return (
|
|
<FilterEmptyState
|
|
title={message ?? t(($) => $['filterEmpty.noApps'], { ns: 'app' })}
|
|
contentDataAttributes={
|
|
stepByStepTourTarget ? { 'data-step-by-step-tour-target': stepByStepTourTarget } : undefined
|
|
}
|
|
/>
|
|
)
|
|
}
|
|
|
|
export default React.memo(Empty)
|