import { Group, Button, Tooltip } from "@mantine/core"; import { useTranslation } from "react-i18next"; type BaseViewDraftBannerProps = { isDirty: boolean; canSave: boolean; onReset: () => void; onSave: () => void; saving: boolean; }; export function BaseViewDraftBanner({ isDirty, canSave, onReset, onSave, saving, }: BaseViewDraftBannerProps) { const { t } = useTranslation(); if (!isDirty) return null; return ( {canSave && ( )} ); }