WebJamApps/CollegeLutheran

View on GitHub
src/components/PicSlider/caption.tsx

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
export const Caption = (props: { caption?: (JSX.Element | string); }):JSX.Element => {
  const { caption } = props;
  return (
    <div
      className="slider-caption"
      style={{
        textAlign: 'center',
        fontWeight: 'bold',
        padding: 0,
        backgroundColor: 'silver',
        marginBottom: 0,
        marginTop: 0,
      }}
    >
      {' '}
      {caption}
      {' '}
    </div>
  );
};