2025-06-20 00:09:12 +07:00
|
|
|
import type { TimelineEventType } from "~/lib/api/types/recipe";
|
2024-03-12 10:20:48 -05:00
|
|
|
|
|
|
|
export interface TimelineEventTypeData {
|
|
|
|
value: TimelineEventType;
|
|
|
|
label: string;
|
|
|
|
icon: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export const useTimelineEventTypes = () => {
|
2025-06-20 00:09:12 +07:00
|
|
|
const i18n = useI18n();
|
|
|
|
const { $globals } = useNuxtApp();
|
2024-03-12 10:20:48 -05:00
|
|
|
const eventTypeOptions = computed<TimelineEventTypeData[]>(() => {
|
|
|
|
return [
|
|
|
|
{
|
|
|
|
value: "comment",
|
2025-06-20 00:09:12 +07:00
|
|
|
label: i18n.t("recipe.comment"),
|
2024-03-12 10:20:48 -05:00
|
|
|
icon: $globals.icons.commentTextMultiple,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
value: "info",
|
2025-06-20 00:09:12 +07:00
|
|
|
label: i18n.t("settings.theme.info"),
|
2024-03-12 10:20:48 -05:00
|
|
|
icon: $globals.icons.informationVariant,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
value: "system",
|
2025-06-20 00:09:12 +07:00
|
|
|
label: i18n.t("general.system"),
|
2024-03-12 10:20:48 -05:00
|
|
|
icon: $globals.icons.cog,
|
|
|
|
},
|
|
|
|
];
|
|
|
|
});
|
|
|
|
|
|
|
|
return {
|
|
|
|
eventTypeOptions,
|
2025-06-20 00:09:12 +07:00
|
|
|
};
|
|
|
|
};
|