import s from "./border.module.css" ; export const border = { radius : s . radius , px1 : s . px1 , strong : s . strong , weak : s . weak , } ; interface Props { color : keyof typeof border ; } export const Border = ( props ) : JSX . Element => ( < hr className = { [ border . px1 , s . borderFull , border [ props . color ] ] . join ( " " ) } / > ) ;