import {Fragment} from 'react';
import styled from '@emotion/styled';
import emptyStateImg from 'sentry-images/spot/replays-empty-state.svg';
import Feature from 'sentry/components/acl/feature';
import {Button} from 'sentry/components/button';
import ButtonBar from 'sentry/components/buttonBar';
import HookOrDefault from 'sentry/components/hookOrDefault';
import OnboardingPanel from 'sentry/components/onboardingPanel';
import {t} from 'sentry/locale';
import PreferencesStore from 'sentry/stores/preferencesStore';
import {useLegacyStore} from 'sentry/stores/useLegacyStore';
import {useReplayOnboardingSidebarPanel} from 'sentry/utils/replays/hooks/useReplayOnboarding';
import useOrganization from 'sentry/utils/useOrganization';
type Breakpoints = {
large: string;
medium: string;
small: string;
xlarge: string;
};
const OnboardingCTAHook = HookOrDefault({
hookName: 'component:replay-onboarding-cta',
defaultComponent: ({children}) => {children},
});
export default function ReplayOnboardingPanel() {
const preferences = useLegacyStore(PreferencesStore);
const breakpoints = preferences.collapsed
? {
small: '800px',
medium: '992px',
large: '1210px',
xlarge: '1450px',
}
: {
small: '800px',
medium: '1175px',
large: '1375px',
xlarge: '1450px',
};
const organization = useOrganization();
return (
}>
}
>
);
}
function SetupReplaysCTA() {
const {activateSidebar} = useReplayOnboardingSidebarPanel();
return (
{t('Get to the root cause faster')}
{t(
'See a video-like reproduction of your user sessions so you can see what happened before, during, and after an error or latency issue occurred.'
)}