9 lines
405 B
TypeScript
9 lines
405 B
TypeScript
import type { ParticipantRef } from '@core/racing/domain/types/ParticipantRef';
|
|
import type { ChampionshipType } from '@core/racing/domain/types/ChampionshipType';
|
|
import { MediaReference } from '../../../core/domain/media/MediaReference';
|
|
|
|
export const makeDriverRef = (id: string): ParticipantRef => ({
|
|
type: 'driver' as ChampionshipType,
|
|
id,
|
|
avatarRef: MediaReference.systemDefault('avatar'),
|
|
}); |