mirror of
https://github.com/devonthesofa/obsidian-note-status.git
synced 2026-07-22 05:45:04 +00:00
18 lines
429 B
TypeScript
18 lines
429 B
TypeScript
import { NoteStatus } from "@/types/noteStatus";
|
|
import React from "react";
|
|
|
|
interface StatusChipProps {
|
|
status: NoteStatus;
|
|
}
|
|
|
|
export const TemplateStatusChip: React.FC<StatusChipProps> = ({ status }) => (
|
|
<div className="template-status-chip">
|
|
<span
|
|
className="template-status-color-dot"
|
|
style={{ "--dot-color": status.color } as React.CSSProperties}
|
|
/>
|
|
<span>
|
|
{status.icon} {status.name}
|
|
</span>
|
|
</div>
|
|
);
|