import React from 'react' import { Card, CardBody, CardHeader, Col, Row } from 'reactstrap' import { ICategoryModel } from '../../../models' const Search = () => { return Search Go! } export interface ICategories { categories?: ICategoryModel [] } const Categories = (props: ICategories) => { const { categories } = props if(!categories) { return <>> } const middleIndex = Math.ceil(categories.length / 2) const firstHalf = categories.splice(0, middleIndex) const secondHalf = categories.splice(-middleIndex) return Categories {firstHalf.map((item, index) => {item.text})} {secondHalf.map((item, index) => {item.text})} } const Empty = () => { return Side Widget You can put anything you want inside of these side widgets. They are easy to use, and feature the Bootstrap 5 card component! } export { Search, Categories, Empty }