--- import type { FetchResult } from "@/types/types" import Disclosure from "./output/Disclosure.astro" import DisclosureContainer from "./output/DisclosureContainer.astro" import { diffChars } from "diff" interface Props { fetchResult: FetchResult | null } const { fetchResult } = Astro.props --- { fetchResult?.orderOperations?.map((operation, index) => ( )) }
{index + 1}: { diffChars(operation.before, operation.after).map((part) => ( {part.value} )) } using: {operation.law}