mirror of
https://github.com/willchen96/mike.git
synced 2026-06-24 21:38:06 +02:00
Add local repo contents
This commit is contained in:
parent
65739ef1ce
commit
d9690965b5
176 changed files with 68998 additions and 0 deletions
13
frontend/src/app/components/shared/VersionChip.tsx
Normal file
13
frontend/src/app/components/shared/VersionChip.tsx
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
/**
|
||||
* Small "V3" badge for document rows/listings, rendered when the doc has
|
||||
* at least one assistant-edit version. Matches the chip in the side
|
||||
* panel's edit-tab header.
|
||||
*/
|
||||
export function VersionChip({ n }: { n: number | null | undefined }) {
|
||||
if (typeof n !== "number" || !Number.isFinite(n) || n < 1) return null;
|
||||
return (
|
||||
<span className="shrink-0 inline-flex items-center rounded-md border border-gray-200 bg-white px-1 py-0.5 text-[10px] font-medium text-gray-500">
|
||||
V{n}
|
||||
</span>
|
||||
);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue