diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/components/KaigirokuDougaLink.js | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/components/KaigirokuDougaLink.js b/src/components/KaigirokuDougaLink.js new file mode 100644 index 00000000..6188969a --- /dev/null +++ b/src/components/KaigirokuDougaLink.js @@ -0,0 +1,21 @@ +import React from 'react'; +import ExternalLink from './ExternalLink.js'; +import headingStyles from '@docusaurus/theme-classic/lib/theme/Heading/styles.module.css'; + +export default function KaigirokuDougaLink({kaigirokuHref, dougaHref}) { + let mada = kaigirokuHref ? "" : "(まだ公開されていません)"; + let kaigiroku = <ExternalLink href={kaigirokuHref}>📄 会議録{mada}</ExternalLink>; + + if (dougaHref) { + return( + <div className={headingStyles.anchorWithStickyNavbar} id={"kaigiroku"}> + {kaigiroku}|<ExternalLink href={dougaHref}>🎞️ 動画(約2年間公開)</ExternalLink> + </div> + ) + } + return ( + <div className={headingStyles.anchorWithStickyNavbar} id={"kaigiroku"}> + {kaigiroku} + </div> + ); +}
\ No newline at end of file |