import React from 'react'
import Link from 'next/link'
import C from '~/code/classes'
export function ItemContainer({ children }: ItemContainerProps) {
const list = [
C.hoverChildrenBackgroundFillPurpleLight,
C.mediaMin720Border4,
C.backgroundFillBaseContrast3,
C.boxShadow1,
C.width100P,
]
return
{children}
}
export type ItemContainerProps = {
children: React.ReactNode
}
export function ItemLink({ children, href }: ItemLinkProps) {
const list = [
C.alignCenter,
C.displayBlock,
C.lineHeight1P7,
C.breakWord,
C.paddingTop12,
C.paddingBottom12,
C.paddingLr16,
C.whitespacePreLine,
C.width100P,
]
return (
{children}
)
}
export type ItemLinkProps = {
children: React.ReactNode
href: string
}
export type ItemPropsType = {
abbr?: string
tab?: string
title?: string
url: string
v?: string
}
export function ItemTab({ children }: ItemTabProps) {
const list = [
C.textFillBase2,
C.fontNotoSans,
C.lineHeight1P7,
C.transitionFade,
]
return {children}
}
export type ItemTabProps = {
children: React.ReactNode
}
export function ItemVersion({ children }: ItemVersionProps) {
const list = [C.textFillRed, C.fontNotoSans, C.lineHeight1P7]
return {children}
}
export type ItemVersionProps = {
children: React.ReactNode
}
function Item({ url, v, title, tab, abbr }: ItemPropsType) {
return (
{abbr ?? tab ?? title}{' '}
{v ? `v${v}` : ''}
)
}
export type ListProps = {
children: React.ReactNode
}
export default function List({ children }: ListProps) {
const list = [
C.flex,
C.column,
C.gap8,
C.widthMax720,
C.paddingBottom16,
C.paddingTop16,
C.width100P,
]
return