@jeremyckahn/farmhand
Version:
A farming game
39 lines (34 loc) • 1.07 kB
JavaScript
import React from 'react'
import { number } from 'prop-types'
import Divider from '@mui/material/Divider/index.js'
import Card from '@mui/material/Card/index.js'
import CardContent from '@mui/material/CardContent/index.js'
import ReactMarkdown from 'react-markdown'
import { WineRecipeList } from '../WineRecipeList/WineRecipeList.js'
import { TabPanel } from './TabPanel/index.js'
export const WinemakingTabPanel = ({ index, currentTab }) => (
<TabPanel value={currentTab} index={index}>
<WineRecipeList />
<Divider />
<ul className="card-list">
<li>
<Card>
<CardContent>
<ReactMarkdown
{...{
linkTarget: '_blank',
className: 'markdown',
source:
'Grapes can be made into wine. Wine becomes very valuable in time and never spoils.',
}}
/>
</CardContent>
</Card>
</li>
</ul>
</TabPanel>
)
WinemakingTabPanel.propTypes = {
currentTab: number.isRequired,
index: number.isRequired,
}