mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
18 lines
418 B
TypeScript
18 lines
418 B
TypeScript
|
export enum DelineatorType {
|
||
|
Content = 'content',
|
||
|
// eslint-disable-next-line @typescript-eslint/no-shadow
|
||
|
Error = 'error',
|
||
|
Insights = 'insights',
|
||
|
}
|
||
|
|
||
|
export const getDelineatorTitle = (type: DelineatorType) => {
|
||
|
switch (type) {
|
||
|
case DelineatorType.Error:
|
||
|
return 'errorWithSnap';
|
||
|
case DelineatorType.Insights:
|
||
|
return 'insightsFromSnap';
|
||
|
default:
|
||
|
return 'contentFromSnap';
|
||
|
}
|
||
|
};
|