import React from 'react'; import { trpc } from '../api/trpc'; export const WebsiteOnlineCount: React.FC<{ workspaceId: string; websiteId: string; }> = React.memo((props) => { const { workspaceId, websiteId } = props; const { data: count } = trpc.website.onlineCount.useQuery({ workspaceId, websiteId, }); if (typeof count === 'number' && count > 0) { return (