mirror of
https://github.com/Jellify-Music/App.git
synced 2026-01-06 11:00:09 -06:00
Add TSDocs to item components
This commit is contained in:
@@ -16,6 +16,13 @@ interface CardProps extends TamaguiCardProps {
|
||||
squared?: boolean
|
||||
}
|
||||
|
||||
/**
|
||||
* Displays an item as a card.
|
||||
*
|
||||
* This is used on the Home Screen and in the Search and Library Tabs.
|
||||
*
|
||||
* @param props
|
||||
*/
|
||||
export function ItemCard(props: CardProps) {
|
||||
const { api, user } = useJellifyContext()
|
||||
|
||||
|
||||
@@ -13,6 +13,17 @@ import FavoriteIcon from './favorite-icon'
|
||||
import { Gesture, GestureDetector } from 'react-native-gesture-handler'
|
||||
import { runOnJS } from 'react-native-reanimated'
|
||||
|
||||
/**
|
||||
* Displays an item as a row in a list.
|
||||
*
|
||||
* This is used in the Search and Library Tabs, as well as the Home and Discover Tabs
|
||||
* when viewing a full list of items from a section
|
||||
*
|
||||
* @param item - The item to display.
|
||||
* @param queueName - The name of the queue. Referenced in the {@link useLoadNewQueue} hook.
|
||||
* @param navigation - The navigation object.
|
||||
* @returns
|
||||
*/
|
||||
export default function Item({
|
||||
item,
|
||||
queueName,
|
||||
|
||||
Reference in New Issue
Block a user