import type { CSSProperties, ReactNode } from 'react' import { themeVars } from './themes' /** 줄바꿈(\n)은 카드에서도 줄바꿈, *별표* 사이는 강조색 */ export function Lines({ text }: { text: string }) { return text.split('\n').map((line, i) => ( {line.split(/(\*[^*]+\*)/).map((part, j) => (part.startsWith('*') && part.endsWith('*') ? {part.slice(1, -1)} : part))} )) } export function Frame({ page, total, theme, skin, className = '', style, children }: { page: number; total: number; theme?: string; skin?: string; className?: string; style?: CSSProperties; children: ReactNode }) { return (