|
1
|
"use client" |
|
2
|
|
|
3
|
import React from "react" |
|
4
|
import { Pagination } from "../Pagination" |
|
5
|
import { useSiteConfig } from "../../providers/SiteConfig" |
|
6
|
|
|
7
|
export type FooterProps = { |
|
8
|
editComponent?: React.ReactNode |
|
9
|
showPagination?: boolean |
|
10
|
feedbackComponent?: React.ReactNode |
|
11
|
editDate?: string |
|
12
|
} |
|
13
|
|
|
14
|
export const Footer = ({ |
|
15
|
editComponent, |
|
16
|
showPagination, |
|
17
|
feedbackComponent, |
|
18
|
}: FooterProps) => { |
|
19
|
const { isInProduct } = useSiteConfig() |
|
20
|
|
|
21
|
return ( |
|
22
|
<> |
|
23
|
{feedbackComponent} |
|
24
|
{showPagination && <Pagination />} |
|
25
|
{!isInProduct && editComponent} |
|
26
|
</> |
|
27
|
) |
|
28
|
} |