'use client'; import { useTranslations } from 'next-intl'; import { Heading } from '@/components/ui/elements/Heading'; import { ToggleCardSkeleton } from '@/components/ui/elements/ToggleCard'; import { useCurrent } from '@/hooks/useCurrent'; import { CreateIngressForm } from './forms/CreateIngressForm'; import { StreamKey } from './forms/StreamKey'; import { StreamURL } from './forms/StreamURL'; import { InstructionModal } from './InstructionModal'; export const KeysSettings = () => { const t = useTranslations('dashboard.keys.header'); const { user, isLoadingProfile } = useCurrent(); return (
{isLoadingProfile ? Array.from({ length: 2 }).map((_, index) => ( // eslint-disable-next-line react/no-array-index-key )) : ( <> )}
); };