All files / src/components/pages/schedule/schedule-list constants.tsx

0% Statements 0/44
0% Branches 0/1
0% Functions 0/1
0% Lines 0/44

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45                                                                                         
import { type ReactNode } from 'react';

export type TabType = 'current' | 'myPost' | 'past';

const DEFAULT_BUTTON_WIDTH = 'w-31';

export const EMPTY_STATE_CONFIG: Record<
  TabType,
  { text: ReactNode; buttonText: string; buttonWidth: string }
> = {
  current: {
    text: (
      <>
        현재 참여 중인 모임이 없어요.
        <br />
        지금 바로 모임을 참여해보세요!
      </>
    ),
    buttonText: '모임 보러가기',
    buttonWidth: DEFAULT_BUTTON_WIDTH,
  },
  myPost: {
    text: (
      <>
        아직 생성한 모임이 없어요.
        <br />
        지금 바로 모임을 만들어보세요!
      </>
    ),
    buttonText: '모임 만들기',
    buttonWidth: DEFAULT_BUTTON_WIDTH,
  },
  past: {
    text: (
      <>
        아직 참여한 모임이 없어요.
        <br />
        마음에 드는 모임을 발견해보세요!
      </>
    ),
    buttonText: '모임 보러가기',
    buttonWidth: DEFAULT_BUTTON_WIDTH,
  },
} as const;