import{o as e,r as t}from"./utils-Dac180Gn.js";import{t as n}from"./card-BVFw-jgA.js";var r=e();function i({createdByName:e,createdAt:i,updatedByName:a,updatedAt:o,asCard:s=!0,className:c=``}){let l=(0,r.jsxs)(`div`,{className:`grid grid-cols-2 gap-y-2 text-sm ${s?``:`pt-2 border-t`} ${c}`,children:[(0,r.jsx)(`span`,{className:`text-muted-foreground`,children:`Created By:`}),(0,r.jsx)(`span`,{children:e||`—`}),(0,r.jsx)(`span`,{className:`text-muted-foreground`,children:`Created At:`}),(0,r.jsx)(`span`,{children:t(i)}),(a!==void 0||o!==void 0)&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(`span`,{className:`text-muted-foreground`,children:`Updated By:`}),(0,r.jsx)(`span`,{children:a||`—`}),(0,r.jsx)(`span`,{className:`text-muted-foreground`,children:`Updated At:`}),(0,r.jsx)(`span`,{children:t(o)})]})]});return s?(0,r.jsxs)(n,{className:`p-6 space-y-3`,children:[(0,r.jsx)(`h2`,{className:`font-semibold text-lg`,children:`Audit Information`}),l]}):l}export{i as t};