import{i as e,s as t}from"./utils-CXcsdpX-.js";import{t as n}from"./card-CCLQVS9k.js";var r=t();function i({createdByName:t,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:t||`—`}),(0,r.jsx)(`span`,{className:`text-muted-foreground`,children:`Created At:`}),(0,r.jsx)(`span`,{children:e(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:e(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};