mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-07-20 13:49:40 +02:00
Co-authored-by: Michael Genson <71845777+michael-genson@users.noreply.github.com> Co-authored-by: Kuchenpirat <24235032+Kuchenpirat@users.noreply.github.com>
35 lines
802 B
TypeScript
35 lines
802 B
TypeScript
import type { TimelineEventType } from "~/lib/api/types/recipe";
|
|
|
|
export interface TimelineEventTypeData {
|
|
value: TimelineEventType;
|
|
label: string;
|
|
icon: string;
|
|
}
|
|
|
|
export const useTimelineEventTypes = () => {
|
|
const i18n = useI18n();
|
|
const { $globals } = useNuxtApp();
|
|
const eventTypeOptions = computed<TimelineEventTypeData[]>(() => {
|
|
return [
|
|
{
|
|
value: "comment",
|
|
label: i18n.t("recipe.comment"),
|
|
icon: $globals.icons.commentTextMultiple,
|
|
},
|
|
{
|
|
value: "info",
|
|
label: i18n.t("settings.theme.info"),
|
|
icon: $globals.icons.informationVariant,
|
|
},
|
|
{
|
|
value: "system",
|
|
label: i18n.t("general.system"),
|
|
icon: $globals.icons.cog,
|
|
},
|
|
];
|
|
});
|
|
|
|
return {
|
|
eventTypeOptions,
|
|
};
|
|
};
|