mirror of
https://github.com/duckietm/Nitro-V3.git
synced 2026-06-20 07:26:19 +00:00
16 lines
479 B
TypeScript
16 lines
479 B
TypeScript
import { NotificationConfirmItem } from '../../../../api';
|
|
import { NotificationDefaultConfirmView } from './NotificationDefaultConfirmView';
|
|
|
|
export const GetConfirmLayout = (item: NotificationConfirmItem, onClose: () => void) =>
|
|
{
|
|
if(!item) return null;
|
|
|
|
const props = { key: item.id, item, onClose };
|
|
|
|
switch(item.confirmType)
|
|
{
|
|
default:
|
|
return <NotificationDefaultConfirmView key={ item.id } item={ item } onClose={ onClose } />;
|
|
}
|
|
};
|