import React from "react"; import { type AutoSaveIndicatorProps, useTranslate, AutoSaveIndicator as AutoSaveIndicatorCore, } from "@refinedev/core"; import { Typography, theme } from "antd"; import { EllipsisOutlined, SyncOutlined, CheckCircleOutlined, ExclamationCircleOutlined, } from "@ant-design/icons"; export const AutoSaveIndicator: React.FC = ({ status, elements: { success = ( } /> ), error = ( } /> ), loading = ( } /> ), idle = ( } /> ), } = {}, }) => { return ( ); }; const Message = ({ translationKey, defaultMessage, icon, }: { translationKey: string; defaultMessage: string; icon: React.ReactNode; }) => { const translate = useTranslate(); const { token } = theme.useToken(); return ( {translate(translationKey, defaultMessage)} {icon} ); };