import React from 'react'; import { FormattedMessage, defineMessages, useIntl } from 'react-intl'; import { Link } from 'react-router-dom'; import Column from 'pl-fe/components/ui/column'; import SvgIcon from 'pl-fe/components/ui/svg-icon'; import Text from 'pl-fe/components/ui/text'; import toast from 'pl-fe/toast'; import sourceCode from 'pl-fe/utils/code'; const messages = defineMessages({ heading: { id: 'column.developers', defaultMessage: 'Developers' }, }); interface IDashWidget { to?: string; onClick?: React.MouseEventHandler; children: React.ReactNode; } const DashWidget: React.FC = ({ to, onClick, children }) => { const className = 'bg-gray-200 dark:bg-gray-800 hover:bg-gray-300 dark:hover:bg-gray-800/75 p-4 rounded flex flex-col items-center justify-center space-y-2'; if (to) { return {children}; } else { return ; } }; const Developers: React.FC = () => { const intl = useIntl(); const showToast = (event: React.MouseEvent) => { event.preventDefault(); toast.success('Hello world!', { action: () => alert('hi'), actionLabel: 'Click me', }); }; return ( <>
{sourceCode.displayName} {sourceCode.version}
); }; export { Developers as default };