feat: inline code highlight

This commit is contained in:
iCrawl
2022-10-11 04:06:14 +02:00
parent e17323c15c
commit 8b7ce2b61d
9 changed files with 432 additions and 43 deletions

View File

@@ -3,7 +3,7 @@ import { VscFlame, VscInfo, VscWarning } from 'react-icons/vsc';
export interface IAlert {
title?: string | undefined;
type: 'danger' | 'info' | 'success';
type: 'danger' | 'info' | 'success' | 'warning';
}
function resolveType(type: IAlert['type']) {
@@ -31,6 +31,14 @@ function resolveType(type: IAlert['type']) {
icon: <VscFlame size={20} />,
};
}
case 'warning': {
return {
text: 'text-yellow-500',
border: 'border-yellow-500',
icon: <VscWarning size={20} />,
};
}
}
}