export const findDuplicate = (data: Record<string, any>[]): number[] => {
const duplicates: number[] = data
.filter((item: Record<string, any>, index: number) => index !== data.findIndex((v: Record<string, any>) => v.order_id === item.order_id))
.map((val: Record<string, any>) => val.id)
return duplicates
}