client/components/mma/identity/Lines.tsx (25 lines of code) (raw):

import type { FC } from 'react'; interface LinesProps { n: number; margin?: string; } export const Lines: FC<LinesProps> = (props) => { const { n, margin } = props; const thickness = 1; const distance = 4; const height = n * distance; return ( <> <hr css={{ backgroundImage: `repeating-linear-gradient(to bottom, #dcdcdc, #dcdcdc ${thickness}px, transparent ${thickness}px, transparent ${distance}px)`, backgroundRepeat: 'repeat', backgroundPosition: 'top', height: `${height}px`, border: 0, margin: margin ? margin : '12px auto 6px', }} /> </> ); };