{
e.preventDefault();
if (!focusedBlock) return;
if (!altText) {
await rep?.mutate.assertFact({
entity: focusedBlock,
attribute: "image/alt",
data: { type: "string", value: "" },
});
setAltEditorOpen(focusedBlock);
} else {
await rep?.mutate.retractAttribute({
entity: focusedBlock,
attribute: "image/alt",
});
setAltEditorOpen(null);
}
}}
tooltipContent={
{altText === undefined ? "Add " : "Remove "}Alt Text
}
>
{altText === undefined ? (
) : (
)}
);
};
const ImageFullBleedOffSmall = (props: Props) => {
return (