Archived
fix: cleanup
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
import { useTranslation } from "react-i18n-lite";
|
||||
|
||||
interface MarkerPassageActionsProps {
|
||||
onGoToPassage: () => void;
|
||||
onDelete: () => void;
|
||||
}
|
||||
|
||||
export function MarkerPassageActions({ onGoToPassage, onDelete }: MarkerPassageActionsProps) {
|
||||
const { t } = useTranslation();
|
||||
return (
|
||||
<div className="annotation-actions">
|
||||
<button type="button" className="btn btn-sm" onClick={onGoToPassage}>
|
||||
{t("annotations.goToPassage")}
|
||||
</button>
|
||||
<button type="button" className="btn btn-sm btn-danger" onClick={onDelete}>
|
||||
{t("common.delete")}
|
||||
</button>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user