aboutsummaryrefslogtreecommitdiff
path: root/src/components/KaigirokuDougaLink.js
blob: 6188969acff87549901f24708a61b0cd4c3cb72f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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>
  );
}