mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-26 20:39:08 +01:00
c716592fd1
* Clean up some code fencing around snaps * Fix code fencing * Fix more fencing issues
21 lines
522 B
TypeScript
21 lines
522 B
TypeScript
export enum DelineatorType {
|
|
Content = 'content',
|
|
// eslint-disable-next-line @typescript-eslint/no-shadow
|
|
Error = 'error',
|
|
Insights = 'insights',
|
|
Description = 'description',
|
|
}
|
|
|
|
export const getDelineatorTitle = (type: DelineatorType) => {
|
|
switch (type) {
|
|
case DelineatorType.Error:
|
|
return 'errorWithSnap';
|
|
case DelineatorType.Insights:
|
|
return 'insightsFromSnap';
|
|
case DelineatorType.Description:
|
|
return 'descriptionFromSnap';
|
|
default:
|
|
return 'contentFromSnap';
|
|
}
|
|
};
|