mirror of
https://github.com/PretendoNetwork/website.git
synced 2026-04-09 18:45:45 -05:00
14 lines
262 B
JavaScript
14 lines
262 B
JavaScript
import styles from './Caption.module.css';
|
|
|
|
/**
|
|
* A reusable component for captions.
|
|
*/
|
|
|
|
export default function Caption(ctx) {
|
|
const { children: caption, style, id } = ctx;
|
|
|
|
return (
|
|
<p className={`${styles.caption} ${style}`} id={id}>{caption}</p>
|
|
);
|
|
}
|