import { LinkingOptions } from '@react-navigation/native';
import * as Linking from 'expo-linking';

import { RootStackParamList } from '.';

/**
 * TODO: Deep linking for React Navigation. It will allow us to do spacedrive://tags/{id} etc.
 * https://reactnavigation.org/docs/deep-linking
 * https://reactnavigation.org/docs/configuring-links
 */
const linking: LinkingOptions<RootStackParamList> = {
	prefixes: [Linking.createURL('/')],
	config: { screens: { Root: { screens: {} }, NotFound: '*' } }
};

export default linking;
