import React, { Fragment } from 'react'; import { VerifyIcon } from '../../components/icons'; import './verification.css'; interface VerificationProps { slug: string; onVerify: (slug: string, verify: boolean) => void; user_verified: boolean; user_verified_as: string; verified_count: number; allow_verify: boolean; } const Verification: React.FunctionComponent = (props) => { let user_verified_as = props.user_verified_as; if (typeof user_verified_as === 'boolean') { user_verified_as = user_verified_as? 'Yes': 'No'; } return (
{props.verified_count || 0} { props.user_verified? Verified as "{user_verified_as}" : }
); } export default Verification;