Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

677 B
Raw Blame
import { LoadingBar } from 'lib/lemon-ui/LoadingBar'

export function SurveyResultsRefreshStatus({ visible }: { visible: boolean }): JSX.Element {
    return (
        <div
            className={visible ? 'h-2' : 'h-0'}
            aria-live="polite"
            aria-atomic="true"
            role="status"
            aria-label={visible ? 'Refreshing results' : undefined}
        >
            {visible ? (
                <LoadingBar
                    loadId="survey-results-refresh"
                    wrapperClassName="w-full max-w-none my-0"
                    className="h-1 rounded-full bg-border"
                />
            ) : null}
        </div>
    )
}