owncast/web/components/chat/ChatUserBadge/AuthedUserBadge.tsx

18 lines
511 B
TypeScript
Raw Normal View History

import dynamic from 'next/dynamic';
import React, { FC } from 'react';
import { ChatUserBadge } from './ChatUserBadge';
// Lazy loaded components
const SafetyCertificateFilled = dynamic(() => import('@ant-design/icons/SafetyCertificateFilled'), {
ssr: false,
});
export type AuthedUserBadgeProps = {
userColor: number;
};
export const AuthedUserBadge: FC<AuthedUserBadgeProps> = ({ userColor }) => (
2023-01-30 22:19:33 +03:00
<ChatUserBadge badge={<SafetyCertificateFilled />} userColor={userColor} title="Authenticated" />
);