61a1f008d0
- i18next 23->26 + react-i18next 15->17 - prettier 2->3, reformat all files - replace @fontsource/inter with @fontsource-variable/inter 5, update import path - domhandler 5->6 (aligns with transitive deps) - lint-staged 16->17
27 lines
510 B
TypeScript
27 lines
510 B
TypeScript
import { useMemo } from 'react';
|
|
import { MessageLayout } from '../state/settings';
|
|
|
|
export type MessageLayoutItem = {
|
|
name: string;
|
|
layout: MessageLayout;
|
|
};
|
|
|
|
export const useMessageLayoutItems = (): MessageLayoutItem[] =>
|
|
useMemo(
|
|
() => [
|
|
{
|
|
layout: MessageLayout.Modern,
|
|
name: 'Modern',
|
|
},
|
|
{
|
|
layout: MessageLayout.Compact,
|
|
name: 'Compact',
|
|
},
|
|
{
|
|
layout: MessageLayout.Bubble,
|
|
name: 'Bubble',
|
|
},
|
|
],
|
|
[],
|
|
);
|