Skip to content

Open-source event management and ticket selling platform — perfect for concerts, conferences, and everything in between 🎟️ If you find this project helpful, please consider giving us a star ⭐️

489 B
Raw Blame
import {Box, Pagination as MantinePagination, PaginationProps as MantinePaginationProps} from "@mantine/core";

interface PaginationProps extends Omit<MantinePaginationProps, 'hideWithOnePage'> {
    marginTop?: number;
}

export const Pagination = (props: PaginationProps) => {
    const {marginTop, ...rest} = props;
    return (
        <Box mt={props.marginTop === undefined ? 20 : props.marginTop}>
            <MantinePagination hideWithOnePage {...rest} />
        </Box>
    );
};