import React, { useState } from 'react' import { Header3 } from '@app/components/general/header' import { User } from '@app/types' import { settingsHeadingStyle } from '@app/styles/headings' export const CoreVitalsView = ({ onConfirmLighthouse, user, }: { onConfirmLighthouse(key: string): Promise user: User }) => { const [pageSpeedKey, setPageSpeed] = useState('') const onSetLighthouseCode = (e: React.SyntheticEvent) => { setPageSpeed(e.currentTarget.value) } const onSubmitLighthouse = async ( e: React.SyntheticEvent ) => { e?.preventDefault() try { await onConfirmLighthouse(pageSpeedKey) } catch (e) { console.error(e) } } const userPageSpeedKey = user?.pageSpeedApiKey ?? '' return (
Core Web Vitals

Core Web Vitals are a set of speed metrics that are part of{' '} {`Google’s`} Page Experience signals used to measure user experience. We retrieve them using PageSpeed Insights API along with our own internal usage. In order to speed of your workflows you can add your own key. {`It’s`} free but limited to a daily quota.

) }