row-wrapper.tsx 481 B

12345678910111213141516
  1. import { Row } from 'react-bootstrap-5'
  2. import { Row as BS3Row } from 'react-bootstrap'
  3. import BootstrapVersionSwitcher from '@/features/ui/components/bootstrap-5/bootstrap-version-switcher'
  4. type RowWrapperProps = React.ComponentProps<typeof Row>
  5. function RowWrapper(props: RowWrapperProps) {
  6. return (
  7. <BootstrapVersionSwitcher
  8. bs3={<BS3Row className={props.className}>{props.children}</BS3Row>}
  9. bs5={<Row {...props} />}
  10. />
  11. )
  12. }
  13. export default RowWrapper