import type { SiteInfo } from '@/models/share' import { cn } from '@langgenius/dify-ui/cn' import { Dialog, DialogCloseButton, DialogContent } from '@langgenius/dify-ui/dialog' import * as React from 'react' import AppIcon from '@/app/components/base/app-icon' import { appDefaultIconBackground } from '@/config' type Props = Readonly<{ data?: SiteInfo isShow: boolean onClose: () => void }> const InfoModal = ({ isShow, onClose, data }: Props) => { const [currentYear] = React.useState(() => new Date().getFullYear()) return ( { if (!open) onClose() }} >
{data?.title}
{data?.description}
{/* copyright */} {data?.copyright && (
Copyright © {currentYear} {data?.copyright}. All Rights Reserved.
)} {data?.custom_disclaimer &&
{data.custom_disclaimer}
}
) } export default InfoModal