'use client'; import PhotoCamera from '@/camera/PhotoCamera'; import Badge from '@/components/Badge'; import DivDebugBaselineGrid from '@/components/DivDebugBaselineGrid'; import FieldsetWithStatus from '@/components/FieldsetWithStatus'; import AppGrid from '@/components/AppGrid'; import EntityLink from '@/components/entity/EntityLink'; import LabeledIcon from '@/components/primitives/LabeledIcon'; import PhotoFilmIcon from '@/film/PhotoFilmIcon'; import { useAppState } from '@/app/AppState'; import { clsx } from 'clsx/lite'; import { useEffect, useState } from 'react'; import { FaCamera, FaHandSparkles, FaUserAltSlash } from 'react-icons/fa'; import { IoMdCamera } from 'react-icons/io'; import { IoImageSharp } from 'react-icons/io5'; const DEBUG_LINES = new Array(30).fill(null); export default function ComponentsPage() { const { shouldShowBaselineGrid, setShouldShowBaselineGrid, } = useAppState(); const [debugComponents, setDebugComponents] = useState(false); useEffect(() => { setShouldShowBaselineGrid?.(true); return () => setShouldShowBaselineGrid?.(false); }, [setShouldShowBaselineGrid]); return (

Baseline Grid: 13.5px / 19px 14px / 20px
setShouldShowBaselineGrid?.(e === 'true')} /> setDebugComponents(e === 'true')} />

} debug={debugComponents} > Camera
Line two
} debug={debugComponents}> Image
} debug={debugComponents}> Image
} debug={debugComponents}> Image
} debug={debugComponents}> Image
} debug={debugComponents}> Image
} debug={debugComponents}> Image
} debug={debugComponents}> Image
} label="Image" debug={debugComponents} />
} label="Image" badged debug={debugComponents} />
} debug={debugComponents} > Canon Mark III
} label="Astia/Soft" type="icon-last" iconWide badged debug={debugComponents} />
} debug={debugComponents}> Image
} debug={debugComponents}> Image
} label="Astia/Soft" type="icon-last" iconWide badged debug={debugComponents} />
} debug={debugComponents}> Image
} debug={debugComponents}> Image
} label="Astia/Soft and another long line here" type="icon-last" iconWide badged debug={debugComponents} />
} debug={debugComponents}> Image
} label="Astia/Soft" type="icon-last" iconWide badged debug={debugComponents} />
} debug={debugComponents}> Image
Optional
Optional
Optional
Optional
Optional
Optional
} debug={debugComponents}> Image
} debug={debugComponents}> Image
{DEBUG_LINES.map((_, i) =>
Line {(i + 1).toString().padStart(2, '0')}
, )}
{DEBUG_LINES.map((_, i) => , )}
} /> ); }