mirror of
https://github.com/zadam/trilium.git
synced 2026-03-16 17:10:29 +01:00
26 lines
583 B
TypeScript
26 lines
583 B
TypeScript
import "./NoteContentSwitcher.css";
|
|
|
|
import { Badge } from "../react/Badge";
|
|
|
|
export interface NoteContentTemplate {
|
|
name: string;
|
|
content: string;
|
|
}
|
|
|
|
interface NoteContentSwitcherProps {
|
|
templates: NoteContentTemplate[];
|
|
}
|
|
|
|
export default function NoteContentSwitcher({ templates }: NoteContentSwitcherProps) {
|
|
return (
|
|
<div className="note-content-switcher">
|
|
{templates.map(sample => (
|
|
<Badge
|
|
key={sample.name}
|
|
text={sample.name}
|
|
/>
|
|
))}
|
|
</div>
|
|
);
|
|
}
|