mirror of
https://github.com/documenso/documenso.git
synced 2025-11-14 00:32:43 +10:00
27 lines
679 B
TypeScript
27 lines
679 B
TypeScript
import React from 'react';
|
|
|
|
import { Badge } from '@documenso/ui/primitives/badge';
|
|
|
|
export type DocumentHistorySheetChangesProps = {
|
|
values: {
|
|
key: string | React.ReactNode;
|
|
value: string | React.ReactNode;
|
|
}[];
|
|
};
|
|
|
|
export const DocumentHistorySheetChanges = ({ values }: DocumentHistorySheetChangesProps) => {
|
|
return (
|
|
<Badge
|
|
className="text-muted-foreground mt-3 block w-full space-y-0.5 text-xs"
|
|
variant="neutral"
|
|
>
|
|
{values.map(({ key, value }, i) => (
|
|
<p key={typeof key === 'string' ? key : i}>
|
|
<span>{key}: </span>
|
|
<span className="font-normal">{value}</span>
|
|
</p>
|
|
))}
|
|
</Badge>
|
|
);
|
|
};
|