mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-12 07:30:46 +02:00
0783bf1dc7
[web] BS5 Group members management GitOrigin-RevId: fab24ee6f6de07aa64887e123df930593fcec6a2
35 lines
855 B
TypeScript
35 lines
855 B
TypeScript
import MaterialIcon from '@/shared/components/material-icon'
|
|
import IconButton from '@/features/ui/components/bootstrap-5/icon-button'
|
|
import BootstrapVersionSwitcher from '@/features/ui/components/bootstrap-5/bootstrap-version-switcher'
|
|
|
|
type BackButtonProps = {
|
|
href: string
|
|
accessibilityLabel: string
|
|
}
|
|
|
|
function BackButton({ href, accessibilityLabel }: BackButtonProps) {
|
|
return (
|
|
<BootstrapVersionSwitcher
|
|
bs3={
|
|
<a href={href} className="back-btn">
|
|
<MaterialIcon
|
|
type="arrow_back"
|
|
accessibilityLabel={accessibilityLabel}
|
|
/>
|
|
</a>
|
|
}
|
|
bs5={
|
|
<IconButton
|
|
variant="ghost"
|
|
href={href}
|
|
size="lg"
|
|
icon="arrow_back"
|
|
accessibilityLabel={accessibilityLabel}
|
|
/>
|
|
}
|
|
/>
|
|
)
|
|
}
|
|
|
|
export default BackButton
|