sub-manager-frontend/src/Components/PageHeader.jsx

28 lines
826 B
React
Raw Normal View History

2023-09-12 14:27:30 +00:00
import plus from '../assets/plus.svg'
import pencil from '../assets/pencil.svg'
import trash from '../assets/trash.svg'
import { Link } from 'react-router-dom'
2023-09-06 15:14:50 +00:00
export default function (props){
return(
2023-09-12 14:27:30 +00:00
<header id="page-header">
2023-09-10 15:01:05 +00:00
<h2>
{props.super}
</h2>
2023-09-06 15:14:50 +00:00
<h1>
2023-09-10 15:01:05 +00:00
{props.heading}
2023-09-06 15:14:50 +00:00
</h1>
2023-09-12 14:27:30 +00:00
<span id="icon-container">
<Link to={`${props.url}/create`} >
<img src={plus}/>
</Link>
<Link to={`${props.url}${props?.id?`/${props.id}`:""}/edit`} >
<img src={pencil}/>
</Link>
<Link to={`${props.url}${props?.id?`/${props.id}`:""}/delete`} >
<img src={trash}/>
</Link>
</span>
2023-09-06 15:14:50 +00:00
</header>
)
}