frontend add

This commit is contained in:
shinmj
2021-10-21 09:03:17 +09:00
parent 8caa4bbc5a
commit cb9d50511e
443 changed files with 88282 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
import ActiveLink from '@components/ActiveLink'
import React from 'react'
export interface IButtons {
id: ValueType
title: string
href: string
className?: string
handleClick?: () => void
}
interface BottomButtonsProps {
handleButtons: IButtons[]
}
const BottomButtons = (props: BottomButtonsProps) => {
const { handleButtons } = props
return (
<div className="btn_center">
{handleButtons &&
handleButtons.map(item => (
<ActiveLink
href={item.href}
children={item.title}
key={`bottom-button-${item.id}`}
className={item.className || ''}
handleActiveLinkClick={item.handleClick}
/>
))}
</div>
)
}
export { BottomButtons }