import { CellContext } from "@tanstack/react-table"; import cx from "clsx"; import moment from "moment"; import type { FormType } from "../../../../interfaces/index.js"; import { registerComponent } from "../../../../registries/components.js"; import { iconClass } from "../../../../utils/iconClass"; import { stopPropagationWrapper } from "../../../../utils/stopPropagationWrapper"; export function FormsCell( props: CellContext & { i18n: (i18n: string) => string; } ) { const { row: { original: form } } = props; return (

{form.title}

  • Name: {form.name || form.machineName}
  • Updated {moment(form.modified).fromNow()} {(form.tags || []).map((tag, index) => ( ))}
); } registerComponent("FormsCell", FormsCell);