Support quoted tombstone

This commit is contained in:
Alex Gleason
2023-05-22 11:47:49 -05:00
parent 8f8dd689a3
commit 36bbef2293
2 changed files with 9 additions and 4 deletions

View File

@ -6,15 +6,15 @@ import { Text } from 'soapbox/components/ui';
interface ITombstone {
id: string
onMoveUp: (statusId: string) => void
onMoveDown: (statusId: string) => void
onMoveUp?: (statusId: string) => void
onMoveDown?: (statusId: string) => void
}
/** Represents a deleted item. */
const Tombstone: React.FC<ITombstone> = ({ id, onMoveUp, onMoveDown }) => {
const handlers = {
moveUp: () => onMoveUp(id),
moveDown: () => onMoveDown(id),
moveUp: () => onMoveUp?.(id),
moveDown: () => onMoveDown?.(id),
};
return (